public async Task <FlightRecordIndexModel> FlightWithFilter()
        {
            _logger.LogInformation("FlightWithFilter");
            FlightRecordIndexModel flightRecordIndexModel = new FlightRecordIndexModel();

            GetAllFlightsQuery getAllFlights = new GetAllFlightsQuery();

            flightRecordIndexModel = await _mediator.Send(getAllFlights);

            flightRecordIndexModel.FilterModel = await FilterModelPut(flightRecordIndexModel.FilterModel);

            flightRecordIndexModel.FlightRecords.MarkNonValidFlight();
            return(flightRecordIndexModel);
        }
 public async Task <List <Flight> > Handle(GetAllFlightsQuery request, CancellationToken cancellationToken)
 {
     return(await _repo.GetAll());
 }