public ActionResult GetRegions(string countryCode, string region, string inputName) { var countryRegion = new CountryRegionViewModel { RegionOptions = _addressBookService.GetRegionsByCountryCode(countryCode), Region = region }; ViewData["Name"] = inputName; return(PartialView("~/Features/Shared/Foundation/DisplayTemplates/CountryRegionViewModel.cshtml", countryRegion)); }
public ActionResult GetRegionsForCountry(string countryCode, string region, string htmlPrefix) { ViewData.TemplateInfo.HtmlFieldPrefix = htmlPrefix; var countryRegion = new CountryRegionViewModel { RegionOptions = _addressBookService.GetRegionsByCountryCode(countryCode), Region = region }; return(PartialView("_AddressRegion", countryRegion)); }
public AddressModel() { CountryRegion = new CountryRegionViewModel(); }