public IHttpActionResult GetFlightsPerStatus()
        {
            var flights   = flightRepository.GetFlightStatusesWithFlights();
            var viewModel = flights.Select(fs => new FlightsPerStatusDto()
            {
                StatusName = fs.StatusName, FlightsNumber = fs.Flights.Count
            })
                            .ToList();

            return(Ok(viewModel));
        }