Beispiel #1
0
 /// <summary>
 /// 删除客户产品模型(操作不可逆)
 /// </summary>
 /// <param name="Id"></param>
 /// <returns></returns>
 public static async Task <int> RemoveCustomerProduct(long Id)
 {
     using (T_Customer_Product_Entities dao = new T_Customer_Product_Entities())
     {
         return(await dao.remove(Id));
     }
 }
Beispiel #2
0
 /// <summary>
 /// 获取客户产品模型
 /// </summary>
 /// <param name="id"></param>
 /// <returns></returns>
 public static async Task <object> GetCustomerProduct(long id)
 {
     using (T_Customer_Product_Entities dao = new T_Customer_Product_Entities())
     {
         return(await dao.Find(id));
     }
 }
Beispiel #3
0
 /// <summary>
 /// 保存客户产品模型
 /// </summary>
 /// <param name="model"></param>
 /// <returns></returns>
 public static async Task <int> SaveCustomerProduct(T_Customer_Product model)
 {
     using (T_Customer_Product_Entities dao = new T_Customer_Product_Entities())
     {
         return(await dao.Save(model));
     }
 }
Beispiel #4
0
 /// <summary>
 /// 获取客户计划列表
 /// </summary>
 /// <param name="customerId"></param>
 /// <returns></returns>
 public static async Task <object> GetCustomerProducts(long customerId)
 {
     using (T_Customer_Product_Entities dao = new T_Customer_Product_Entities())
     {
         return(await dao.List(customerId));
     }
 }