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); }
public void SaveAttribute(AttributeDefinition attribute) { mongoService .GetCollection<AttributeDefinition>("attributes") .Save(attribute); }
public ActionResult SaveAttribute(AttributeDefinition attribute) { return new EmptyResult(); }
public ActionResult NewAttribute(AttributeDefinition attribute) { schemaService.SaveAttribute(attribute); var attributes = schemaService.GetAttributes(); return PartialView("Attributes/Index", attributes); }