/// <summary> /// 店铺分类列表 /// </summary> public ActionResult StoreClassList() { StoreClassListModel model = new StoreClassListModel() { StoreClassList = AdminStores.GetStoreClassList(WorkContext.StoreId) }; MallUtils.SetAdminRefererCookie(Url.Action("storeclasslist")); return(View(model)); }
/// <summary> /// 店铺分类列表 /// </summary> public ActionResult StoreClassList(int storeId = -1) { StoreInfo storeInfo = AdminStores.GetStoreById(storeId); if (storeInfo == null) { return(PromptView("店铺不存在")); } StoreClassListModel model = new StoreClassListModel() { StoreId = storeId, StoreClassList = AdminStores.GetStoreClassList(storeId) }; MallUtils.SetAdminRefererCookie(string.Format("{0}?storeId={1}", Url.Action("storeclasslist"), storeId)); return(View(model)); }