예제 #1
0
        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));
        }
예제 #2
0
        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));
        }
예제 #3
0
 public AddressModel()
 {
     CountryRegion = new CountryRegionViewModel();
 }