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))); }
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))); }