コード例 #1
0
ファイル: CustomerService.cs プロジェクト: 262734254/RNS
        public bool UpdateCustomerExtentions(CustomerExtentions customerExtentions)
        {
            if (customerExtentions == null)
            {
                throw new ArgumentNullException("customer");
            }

            bool result = _customerExtentionsRepository.Update(customerExtentions);

            return(result);
        }
コード例 #2
0
ファイル: CustomerService.cs プロジェクト: 262734254/RNS
        /// <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);
        }