public ActionResult <Flight> getByID(int id) { try { return(Ok(_service.getById(id))); } catch (Exception e) { return(BadRequest(e.Message)); } }