public IEnumerable <CountryDto.StateProvinceRow> GetRegionOptionsByCountryCode(string countryCode) { CountryDto.CountryRow country = _countryManager.GetCountryByCountryCode(countryCode); if (country != null) { return(GetRegionOptionsFromCountry(country)); } return(Enumerable.Empty <CountryDto.StateProvinceRow>()); }
public IEnumerable <string> GetRegionsByCountryCode(string countryCode) { var country = _countryManager.GetCountryByCountryCode(countryCode); return(country != null?GetRegionsForCountry(country) : Enumerable.Empty <string>()); }