Beispiel #1
0
 public ActionResult <IEnumerable <Flight> > getAll()
 {
     try
     {
         return(Ok(_service.getAll()));
     }
     catch (Exception e)
     {
         return(BadRequest(e.Message));
     }
 }