Пример #1
0
 public IActionResult GetNrCompanies()
 {
     try
     {
         return(Ok(_statisticsRepository.GetNumberOfCompanies()));
     }
     catch (Exception ex)
     {
         _logger.LogCritical($"An exception was thrown: ", ex);
         return(StatusCode(500, "A problem happend while handeling your request."));
     }
 }