Exemple #1
0
        // GET: Admin/StaticCategoryListItem
        public ActionResult Index(int?id)
        {
            int categoryListId = (id.HasValue) ? Convert.ToInt32(id) : 0;
            int categoryId     = (categoryListId > 0) ? db.StaticCategoryLists.Find(categoryListId).StaticCategory.Id : 0;

            ViewBag.StaticCategory     = StaticCategory.DropDown(categoryId);
            ViewBag.StaticCategoryList = StaticCategoryList.DropDown(categoryId, categoryListId);

            return(View());
        }
Exemple #2
0
 public JsonResult GetCategoryList(int categoryId)
 {
     return(Json(StaticCategoryList.DropDown(categoryId)));
 }