Пример #1
0
 public static async Task<object> SaveCustomerTask(T_Customer_Task model)
 {
     using (T_Customer_Task_Entities entity = new T_Customer_Task_Entities())
     {
         return await entity.Save(model);
     }
 }
Пример #2
0
 public static async Task<object> GetCustomerTask(long taskId)
 {
     using (T_Customer_Task_Entities entity = new T_Customer_Task_Entities())
     {
         return await entity.Find(taskId);
     }
 }
Пример #3
0
 public static async Task<object> GetCustomerTasks(long cid)
 {
     using (T_Customer_Task_Entities entity = new T_Customer_Task_Entities())
     {
         return await entity.List(cid);
     }
 }