public ActionResult GetRegionsForCountry(string countryCode, string region, string htmlPrefix) { ViewData.TemplateInfo.HtmlFieldPrefix = htmlPrefix; var countryRegion = new CountryRegionViewModel(); countryRegion.RegionOptions = _addressBookService.GetRegionsByCountryCode(countryCode); countryRegion.Region = region; return(PartialView("~/Views/Shared/EditorTemplates/AddressRegion.cshtml", countryRegion)); }
public IActionResult 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 IActionResult GetRegions(string countryCode, string region, string inputName) { var countryRegion = new CountryRegionViewModel { RegionOptions = _addressBookService.GetRegionsByCountryCode(countryCode), Region = region }; ViewData["Name"] = inputName; return(PartialView("~/Features/Shared/Views/DisplayTemplates/CountryRegionViewModel.cshtml", countryRegion)); }
public AddressModel() { CountryRegion = new CountryRegionViewModel(); }