Пример #1
0
        public IActionResult Update([FromBody] CustomerDTO customerDTO)
        {
            if (customerDTO == null)
            {
                return(BadRequest());
            }
            var response = _customerApplication.Update(customerDTO);

            if (response.IsSuccess)
            {
                return(Ok(response));
            }
            return(BadRequest(response.Message));
        }
Пример #2
0
 public Task <ObjectResult> Update(UpdateCustomerViewModel updateCustomerViewModel)
 {
     _customerApplication.Update(updateCustomerViewModel);
     return(CreateResponse(null));
 }