public ActionResult CityLists(int id) { DDViewModel dm = new DDViewModel { Name = "CityList", Label = "- Your City -", Values = ModelHelper.ToSelectItemList(new LocationHandler().GetCities(new Country { Id = id })) }; return(PartialView("~/Views/Shared/_DDLView.cshtml", dm)); }
public ActionResult SubCategoryList(int id) { DDViewModel dm = new DDViewModel { Name = "SubCategoryList", Label = "- Sub Category -", Values = ModelHelper.ToSelectItemList(new ProductHandler().GetSubCategories(new Category { Id = id })) }; return(PartialView("~/Views/Shared/_DDLViewBoot.cshtml", dm)); }