/// <summary> /// 分类列表 /// </summary> public ActionResult CategoryList() { CategoryListModel model = new CategoryListModel(); model.CategoryList = AdminCategories.GetCategoryList(); ShopUtils.SetAdminRefererCookie(Url.Action("categorylist")); return(View(model)); }
private void Load() { ViewData["categoryList"] = AdminCategories.GetCategoryList(); ViewData["referer"] = ShopUtils.GetAdminRefererCookie(); }