public ActionResult RefreshIntRetailers(string countryCode, int pageNumber) { if (!string.IsNullOrEmpty(countryCode)) { ViewBag.Scripts = new List <string>() { "where_to_buy.js" }; var model = new WhereToBuyIntlModel(); model.Countries = CountryManager.GetCountries(); model.RetailList = RetailManager.FindByCountry(this.CurrentBrand, countryCode, pageNumber, PAGE_SIZE); model.SearchByDesc = model.Countries.Find(x => x.Code.ToLower().Equals(countryCode.ToLower())).Name; ViewBag.Title = model.RetailList.Seo.PageTitle; ViewBag.Description = model.RetailList.Seo.PageDescription; return(PartialView(PathFromView("Partials/WhereToBuy/_DealersIntlPartial"), model)); } return(new EmptyResult()); }
// GET: WhereToBuyIntl //[Route("where-to-buy-intl")] public ActionResult WhereToBuyIntl(string countryCode) { countryCode = countryCode.ToUpper(); ViewBag.Scripts = new List <string>() { "where_to_buy.js" }; var model = new WhereToBuyIntlModel(); model.Countries = CountryManager.GetCountries(); model.RetailList = RetailManager.FindByCountry(this.CurrentBrand, countryCode, 1, PAGE_SIZE); model.SearchByDesc = model.Countries.Find(x => x.Code.Equals(countryCode)).Name; ViewBag.HasGoogleMaps = true; ViewBag.Title = model.RetailList.Seo.PageTitle; ViewBag.Description = model.RetailList.Seo.PageDescription; return(View(PathFromView("WhereToBuyIntl"), model)); }