Пример #1
0
 public IActionResult UpdateCustomer(CustomerUpdate Customer)
 {
     try
     {
         return(new JsonResult(CustomerBAL.UpdateCustomer(Customer)));
     }
     catch (Exception ex)
     {
         return(StatusCode(StatusCodes.Status500InternalServerError, "Failed to update Customer"));
     }
 }