public IActionResult GetFlightsByLocation(string fromlocation, string tolocation)
        {
            try
            {
                var flightdata = repo.FindByLocation(fromlocation, tolocation);
                if (flightdata != null)
                {
                    return(Ok(flightdata));
                }
                return(BadRequest("No data Available!"));
            }

            catch (Exception)
            {
                return(BadRequest("Error in fetching in all the flights!"));
            }
        }