public async Task <ActionResult> Update(FlightDTO flightData)
        {
            var flightModel = await _flightRepository.GetFlight(flightData.flightId);

            if (flightModel == null)
            {
                return(NotFound());
            }
            _mapper.Map(flightData, flightModel);
            await _flightRepository.UpdateFlight(flightModel);

            return(Ok());
        }