/// <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)); } }
/// <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)); } }
/// <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)); } }
/// <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)); } }