Beispiel #1
0
 public IActionResult Get(int id)
 {
     try
     {
         return(Ok(_repository.GetPersonById(id)));
     }
     catch (Exception e)
     {
         //_logger.LogError($"Failed to get all trips: {e}");
         return(BadRequest($"Error occured: {e}"));
     }
 }