Пример #1
0
        public ActionResult <bool> UpdateCustomer(CustomerUpdateRequestModel customerRequestModel)
        {
            var customerModel = _customerServices.GetById(customerRequestModel.Id);

            customerModel.Update(customerRequestModel);
            return(_customerServices.Update(customerRequestModel.Id, customerModel));
        }
 public void Update(CustomerUpdateRequestModel customerUpdateRequestModel)
 {
     customerUpdateRequestModel.Address.AddressLine ??= "";
     Name     = customerUpdateRequestModel.Name;
     Email    = customerUpdateRequestModel.Email;
     Address  = customerUpdateRequestModel.Address;
     Password = customerUpdateRequestModel.Password;
 }