public bool UpdateCustomerExtentions(CustomerExtentions customerExtentions) { if (customerExtentions == null) { throw new ArgumentNullException("customer"); } bool result = _customerExtentionsRepository.Update(customerExtentions); return(result); }
/// <summary> /// 插入会员的扩展设置 /// </summary> /// <param name="customerExtentions"></param> /// <returns></returns> public bool InsertCustomerExtentions(CustomerExtentions customerExtentions) { if (customerExtentions == null) { throw new ArgumentNullException("customerExtentions"); } bool result = false; if (GetCustomerExtentionsId(customerExtentions.Id) != null) { result = _customerExtentionsRepository.Update(customerExtentions); } else { result = _customerExtentionsRepository.Insert(customerExtentions); } return(result); }