public async Task <FlightPlan> GetFlightPlanById(string id)
        {
            //get flight plan by id from DB
            FlightPlan f = db.GetFlightPlanById(id);

            if (f == null)
            {
                //try to get from extenal server
                try
                {
                    //ExternalFlight ex = new ExternalFlight();
                    f = await externalFlight.GetExternalFlightPlanAsync(id);
                }
                catch
                {
                    f = null;
                }
            }
            return(f);
        }