コード例 #1
0
        public async Task <List <CountryViewModel> > GetCountryByAlpha2Async(string alpha2,
                                                                             CancellationToken ct = default(CancellationToken))
        {
            var albums = CountryCoverter.ConvertList(await _countryRepository.GetByAlpha2IdAsync(alpha2, ct));

            return(albums);
        }
コード例 #2
0
        public async Task <List <CountryViewModel> > GetAllCountryAsync(CancellationToken ct = default(CancellationToken))
        {
            var countries = CountryCoverter.ConvertList(await _countryRepository.GetAllAsync(ct));

            return(countries);
        }