Пример #1
0
 public static async Task<object> SaveCustomer(T_Customer model)
 {
     using (T_Customer_Entities entity = new T_Customer_Entities())
     {
         return await entity.Save(model);
     }
 }
Пример #2
0
 public static async Task<List<T_Customer>> CheckCustomerCName(string userCName)
 {
     using (T_Customer_Entities entity = new T_Customer_Entities())
     {
         return await entity.CheckCustomerCName(userCName);
     }
 }
Пример #3
0
 public static async Task<object> GetCustomers(CustomerParams param)
 {
     using (T_Customer_Entities entity = new T_Customer_Entities())
     {
         return await entity.List(param);
     }
 }
Пример #4
0
 public static async Task<object> GetCustomer(long cid)
 {
     using (T_Customer_Entities entity = new T_Customer_Entities())
     {
         return await entity.Find(cid);
     }
 }