public static PLCustomer CheckCustomerPassword(string customer_name, string customer_pw) { string[] errors = new string[0]; SLCustomers.ISLCustomers SLCustomers = new SLCustomers.SLCustomersClient(); PLCustomer PL_Customer = (DTO_to_PL(SLCustomers.CheckCustomerLoginPassword(customer_name, customer_pw, ref errors))); return PL_Customer; //add some http context maybe }
public static List<PLCustomer> ListCustomers() { string[] errors = new string[0]; SLCustomers.ISLCustomers SLCustomers = new SLCustomers.SLCustomersClient(); SLCustomers.Customer[] customersLoaded = SLCustomers.ListCustomers(ref errors); List<PLCustomer> customersList = new List<PLCustomer>(); foreach (SLCustomers.Customer a in customersLoaded) { PLCustomer adminLogin = DTO_to_PL(a); customersList.Add(adminLogin); } return customersList; }
public static void UpdateCustomer(PLCustomer PL_Customer) { string[] errors = new string[0]; SLCustomers.ISLCustomers SLCustomers = new SLCustomers.SLCustomersClient(); SLCustomers.UpdateCustomer(DTO_to_SL(PL_Customer), ref errors); }
public static PLCustomer GetCustomerInfo(int customer_id) { string[] errors = new string[0]; SLCustomers.ISLCustomers SLCustomers = new SLCustomers.SLCustomersClient(); return DTO_to_PL(SLCustomers.GetCustomerInfo(customer_id.ToString(), ref errors)); }
public static void DeleteCustomer(int customer_id) { string[] errors = new string[0]; SLCustomers.ISLCustomers SLCustomers = new SLCustomers.SLCustomersClient(); SLCustomers.DeleteCustomer(customer_id.ToString(), ref errors); }