Пример #1
0
        public async Task <IActionResult> GetCountries()
        {
            var countriesFromRepo = await _repository.GetCountries();

            var countriesToReturn = Mapper.Map <IEnumerable <CountryDto> >(countriesFromRepo);

            return(Ok(countriesToReturn));
        }