/// <summary> /// 属性值列表 /// </summary> public ActionResult AttributeValueList(int attrId = -1) { AttributeInfo attributeInfo = AdminCategories.GetAttributeById(attrId); if (attributeInfo == null) { return(PromptView("属性不存在")); } AttributeValueListModel model = new AttributeValueListModel() { AttributeValueList = AdminCategories.GetAttributeSelectValueListByAttrId(attrId), AttrId = attributeInfo.AttrId, AttributeName = attributeInfo.Name, CateId = attributeInfo.CateId }; ShopUtils.SetAdminRefererCookie(string.Format("{0}?attrId={1}", Url.Action("attributevaluelist"), attrId)); return(View(model)); }