public async Task <IEnumerable <FlightDto> > HandleAsync(BrowseFlights query)
        {
            var flights = await _flightsRepository.BrowseAsync(query.PageSize, query.Page);

            var temp = new List <FlightDto>();

            if (flights != null)
            {
                foreach (var flight in flights)
                {
                    temp.Add(new FlightDto()
                    {
                        Id               = flight.Id,
                        StartAirport     = flight.StartAirport,
                        TransferAirports = flight.TransferAirports,
                        EndAirport       = flight.EndAirport,
                        AvailableSeats   = flight.AvailableSeats,
                        FlightStatus     = flight.FlightStatus,
                        FlightType       = flight.FlightType,
                        FlightDate       = flight.FlightDate,
                        ReturnDate       = flight.ReturnDate,
                    });
                }
            }

            return(temp);
        }