コード例 #1
0
        public async Task <ActionResult <List <CountryModel> > > GetAirports()
        {
            var airportsFromRepo = await _repository.GetAllCountriesAsync();

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