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