Пример #1
0
        public IHttpActionResult Put(int id, [FromBody] CustomerPaymentDTO customerPaymentDTO)
        {
            try
            {
                customerPaymentDTO.CustomerPaymentId = id;
                if (customerPaymentDTO == null)
                {
                    return(BadRequest("Argument Null"));
                }

                _customerPaymentService.UpdateCustomerPayment(customerPaymentDTO);

                return(Ok());
            }
            catch (PlatformModuleException ex)
            {
                return(BadRequest(ex.Message));
            }
        }
 public void Put(CustomerPaymentViewModel customerPayment)
 {
     _customerPaymentService.UpdateCustomerPayment(customerPayment);
 }