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));
        }
예제 #2
0
        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));
        }