public async Task <List <CountryViewModel> > GetCountryByAlpha2Async(string alpha2, CancellationToken ct = default(CancellationToken)) { var albums = CountryCoverter.ConvertList(await _countryRepository.GetByAlpha2IdAsync(alpha2, ct)); return(albums); }
public async Task <List <CountryViewModel> > GetAllCountryAsync(CancellationToken ct = default(CancellationToken)) { var countries = CountryCoverter.ConvertList(await _countryRepository.GetAllAsync(ct)); return(countries); }