Exemplo n.º 1
0
 public ActionResult <string> Get()
 {
     try
     {
         _logger.LogInformation("Get a client by social number");
         var client = _clientServices.GetByKey(ClientKey);
         return(Ok(client));
     }
     catch (Exception ex)
     {
         _logger.LogError(ex, ex.Message);
         return(new StatusCodeResult(500));
     }
 }