Exemple #1
0
 public ActionResult <string> ActivateCustomer(int id)
 {
     try
     {
         _logger.LogInformation("Received patch Customer request");
         _customerServices.ActivateCustomer(id);
         return(Ok("OK"));
     }
     catch (Exception exception)
     {
         _logger.LogError(exception, exception.Message);
         return(new StatusCodeResult(500));
     }
 }