Пример #1
0
        public async Task <ActionResult <Airport> > GetAirportById(int id)
        {
            var results = await _airportService.GetAirportByIdAsync(id);

            if (results == null)
            {
                return(NotFound());
            }

            return(Ok(results));
        }