Beispiel #1
0
 [HttpGet]  // GETALL
 public ActionResult <IEnumerable <Flight> > Get()
 {
     try
     {
         return(Ok(_service.Get()));
     }
     catch (Exception e)
     {
         return(BadRequest(e.Message));
     }
 }