示例#1
0
        public async Task <ActionResult <CountryModel> > GetAirport(int id)
        {
            var airportFromRepo = await _repository.GetCountryByIdAsync(id);

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

            return(Ok(_mapper.Map <CountryModel>(airportFromRepo)));
        }