Пример #1
0
 public async Task <IActionResult> GetBoatByID(int id)
 {
     try
     {
         var result = _boatBusinessLogic.GetBoatById(id);
         if (result != null)
         {
             return(Ok(result));
         }
         return(NotFound());
     }
     catch
     {
         return(StatusCode(500));
     }
 }