示例#1
0
        public ActionResult ElementTypeAttributeList(Guid id)
        {
            ViewBag.Title = "ElementTypeAttributes";
            DataModel model = new DataModel();

            model.ElementTypeAttributes = ElementTypeAttributes.GetAttributesByElementTypeId(id);
            model.SelectedElementType   = ElementTypes.GetElementTypeByElementTypeId(id);

            foreach (ElementTypeAttribute item in model.ElementTypeAttributes)
            {
                item.AttrValueCount = Attributes.CountAttributeValues(item.AttributeId);
            }

            return(View(model));
        }