/// <summary> /// 属性列表 /// </summary> public ActionResult AttributeList(string sortColumn, string sortDirection) { AttributeListModel model = new AttributeListModel() { AttributeList = AdminCategories.AdminGetAttributeList("attrid"), SortColumn = sortColumn, SortDirection = sortDirection }; MallUtils.SetAdminRefererCookie(string.Format("{0}?sortColumn={1}&sortDirection={2}", Url.Action("attributelist"), sortColumn, sortDirection)); return(View(model)); }
/// <summary> /// 属性列表 /// </summary> public ActionResult AttributeList(int cateId = -1) { CategoryInfo categoryInfo = AdminCategories.GetCategoryById(cateId); if (categoryInfo == null) { return(PromptView("分类不存在")); } AttributeListModel model = new AttributeListModel() { AttributeList = AdminCategories.AdminGetAttributeList(cateId), CateId = cateId, CategoryName = categoryInfo.Name }; ShopUtils.SetAdminRefererCookie(string.Format("{0}?cateId={1}", Url.Action("attributelist"), cateId)); return(View(model)); }
/// <summary> /// 属性列表 /// </summary> public ActionResult AttributeList(string sortColumn, string sortDirection, int cateId = -1) { CategoryInfo categoryInfo = AdminCategories.GetCategoryById(cateId); if (categoryInfo == null) { return(PromptView("分类不存在")); } string sort = AdminBrands.AdminGetBrandListSort(sortColumn, sortDirection); AttributeListModel model = new AttributeListModel() { AttributeList = AdminCategories.AdminGetAttributeList(cateId, sort), SortColumn = sortColumn, SortDirection = sortDirection, CateId = cateId, CategoryName = categoryInfo.Name }; MallUtils.SetAdminRefererCookie(string.Format("{0}?cateId={1}&sortColumn={2}&sortDirection={3}", Url.Action("attributelist"), cateId, sortColumn, sortDirection)); return(View(model)); }