Example #1
0
        public ActionResult NewAttribute()
        {
            var attribute = new AttributeDefinition();
            var attributeModel = new NewAttributeModel() {
                Attribute = attribute,
                BaseTypes = schemaService.GetBaseTypes(),
                Editors = schemaService.GetEditors(),
                Renderers = schemaService.GetRenderers() };

            return PartialView("Attributes/Edit", attributeModel);
        }
Example #2
0
 public void SaveAttribute(AttributeDefinition attribute)
 {
     mongoService
         .GetCollection<AttributeDefinition>("attributes")
         .Save(attribute);
 }
Example #3
0
 public ActionResult SaveAttribute(AttributeDefinition attribute)
 {
     return new EmptyResult();
 }
Example #4
0
 public ActionResult NewAttribute(AttributeDefinition attribute)
 {
     schemaService.SaveAttribute(attribute);
     var attributes = schemaService.GetAttributes();
     return PartialView("Attributes/Index", attributes);
 }