public IActionResult GetAllFlights()
        {
            try
            {
                var flightlist = repo.GetAllflights();
                if (flightlist != null)
                {
                    return(Ok(flightlist));
                }
                return(BadRequest("No data Available!"));
            }

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