public async Task AddAirportAsync(Airport airport, CancellationToken cancellationToken) { await airportService.AddAirportAsync(airport, cancellationToken); await applicationContext.SaveChangesAsync(cancellationToken); }
public async Task <ActionResult> PostAirportAsync(SaveAirportDTO saveAirportDTO) { var res = await _service.AddAirportAsync(saveAirportDTO); return(res); }