private async void GetCountryList(Action action) { CountryProvinces = await DependencyService.Get <IProvinceServices>().GetAsync(); CountryList = CountryProvinces.Select(c => (string)c.CountryName).Distinct().ToList(); action?.Invoke(); }
public async Task <List <string> > GetCountryList() { CountryProvinces = await DependencyService.Get <IProvinceServices>().GetAsync(); CountryList = CountryProvinces.Select(c => (string)c.CountryName).Distinct().ToList(); return(CountryList); }