public async Task <IEnumerable <Language> > ListByCountryIdAsync(int countryId)
        {
            var countryLanguage = await _countryLanguageRepository.ListByCountryIdAsync(countryId);

            var languages = countryLanguage.Select(pt => pt.Language).ToList();

            return(languages);
        }
예제 #2
0
 public async Task <IEnumerable <CountryLanguage> > ListByCountryIdAsync(int countryId)
 {
     return(await _countryLanguageRepository.ListByCountryIdAsync(countryId));
 }