public async Task <IEnumerable <Language> > ListByCountryIdAsync(int countryId) { var countryLanguage = await _countryLanguageRepository.ListByCountryIdAsync(countryId); var languages = countryLanguage.Select(pt => pt.Language).ToList(); return(languages); }
public async Task <IEnumerable <CountryLanguage> > ListByCountryIdAsync(int countryId) { return(await _countryLanguageRepository.ListByCountryIdAsync(countryId)); }