Esempio n. 1
0
        public async Task <IActionResult> DeleteFlightAsync(int flightId, [FromQuery(Name = "dryrun")] bool dryRun = false)
        {
            var igcFlightDto = await _aggregatorService.DeleteFlightAsync(flightId, dryRun);

            var igcFlightModel = _dataConverter.Convert <IgcFlightModel>(igcFlightDto);

            return(Ok(new ApiResponseModel(HttpStatusCode.OK, igcFlightModel)));
        }
Esempio n. 2
0
        public async Task <IActionResult> DeleteFlightAsync(int flightId)
        {
            var igcFlightDto = await _aggregatorService.DeleteFlightAsync(flightId);

            var igcFlightModel = _dataConverter.Convert <IgcFlightModel>(igcFlightDto);

            return(Ok(new ApiResponseModel(HttpStatusCode.OK, igcFlightModel)));
        }