Ejemplo n.º 1
0
        public async Task AddAirportAsync(Airport airport, CancellationToken cancellationToken)
        {
            await airportService.AddAirportAsync(airport, cancellationToken);

            await applicationContext.SaveChangesAsync(cancellationToken);
        }
Ejemplo n.º 2
0
        public async Task <ActionResult> PostAirportAsync(SaveAirportDTO saveAirportDTO)
        {
            var res = await _service.AddAirportAsync(saveAirportDTO);

            return(res);
        }