Ejemplo n.º 1
0
 private IEnumerable<string> GetRegionsForCountry(CountryDto.CountryRow country)
 {
     return country == null ? Enumerable.Empty<string>() : country.GetStateProvinceRows().Select(x => x.Name).ToList();
 }
Ejemplo n.º 2
0
 private IEnumerable<CountryDto.StateProvinceRow> GetRegionOptionsFromCountry(CountryDto.CountryRow country)
 {
     if (country == null)
     {
         return _emptyRegionList;
     }
     return country.GetStateProvinceRows().ToList();
 }