public IHttpActionResult GetFlight(string id)
        {
            IHttpActionResult result;
            DailyFlights      df = null;

            GateDAO dao = new GateDAO();

            df = dao.get(id);
            if (df != null)
            {
                result = Ok(df);
            }
            else
            {
                result = NotFound();
            }

            return(result);
        }
        public IHttpActionResult Delete(string id)
        {
            IHttpActionResult result = null;

            GateDAO dao = new GateDAO();
            // Get the flight
            DailyFlights df = dao.get(id);

            // Did we find the flight?
            if (df.FlightNumber != null)
            {
                // Delete the flight
                dao.cancel(df.GateNumber, df);

                result = Ok(true);
            }
            else
            {
                result = NotFound();
            }

            return(result);
        }