Ejemplo n.º 1
0
        public async Task CreateAirport(Stream stream, CancellationToken cancellationToken, string path)
        {
            await airportService.CreateAirportAsync(stream, cancellationToken, path);

            await applicationContext.SaveChangesAsync(cancellationToken);
        }
Ejemplo n.º 2
0
        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!" }));
        }