コード例 #1
0
 public IActionResult GetStorageSite(Guid id)
 {
     try
     {
         return(Ok(LocationsService.GetStorageSite(id)));
     }
     catch (StorageSiteNotFoundException exception)
     {
         return(HandleResourceNotFoundException(exception));
     }
     catch (Exception exception)
     {
         return(HandleUnexpectedException(exception));
     }
 }