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