public async Task CreateAirport(Stream stream, CancellationToken cancellationToken, string path) { await airportService.CreateAirportAsync(stream, cancellationToken, path); await applicationContext.SaveChangesAsync(cancellationToken); }
public async Task <ActionResult <Airport> > CreateAirport([FromBody] UpdateAirportRequest airport) { var created = await _airportService.CreateAirportAsync(airport); return(Ok(new { status = 200, data = created, message = "Airport created!" })); }