Пример #1
0
 public ActionResult <Flight> getByID(int id)
 {
     try
     {
         return(Ok(_service.getById(id)));
     }
     catch (Exception e)
     {
         return(BadRequest(e.Message));
     }
 }