public static async Task<object> SaveCustomer(T_Customer model) { using (T_Customer_Entities entity = new T_Customer_Entities()) { return await entity.Save(model); } }
public static async Task<List<T_Customer>> CheckCustomerCName(string userCName) { using (T_Customer_Entities entity = new T_Customer_Entities()) { return await entity.CheckCustomerCName(userCName); } }
public static async Task<object> GetCustomers(CustomerParams param) { using (T_Customer_Entities entity = new T_Customer_Entities()) { return await entity.List(param); } }
public static async Task<object> GetCustomer(long cid) { using (T_Customer_Entities entity = new T_Customer_Entities()) { return await entity.Find(cid); } }