public IHttpActionResult GetAllFlights()
 {
     using (var ctx = new FlightDb())
     {
         var flights = ctx.Flights.ToList();
         return Ok(flights);
     }            
 }
 public IHttpActionResult GetAllFlights()
 {
     var db = new FlightDb();
     return Ok(db.Flights);
 }