コード例 #1
0
 public IActionResult Get(int id)
 {
     try
     {
         return(Ok(_timelineService.ByPersonId(id)));
     }
     catch (Exception ex)
     {
         _logger.LogError($"Could not get person with id {id}", ex);
         return(BadRequest("Error occurred"));
     }
 }