public override IEnumerable<TemplateViewModel> TypeEditorUpdate(ContentTypeDefinitionBuilder builder, IUpdateModel updateModel) { var model = new ContentTypeSettings(); updateModel.TryUpdateModel(model, "ContentTypeSettings", null, null); builder.Creatable(model.Creatable); builder.Draftable(model.Draftable); yield return DefinitionTemplate(model); }
public override IEnumerable<TemplateViewModel> TypeEditorUpdate(ContentTypeDefinitionBuilder builder, IUpdateModel updateModel) { var model = new ContentTypeSettingsViewModel(); updateModel.TryUpdateModelAsync(model, "ContentTypeSettingsViewModel").Wait(); builder.Creatable(model.Creatable); builder.Listable(model.Listable); builder.Draftable(model.Draftable); builder.Securable(model.Securable); builder.WithSetting("Stereotype", model.Stereotype); yield return DefinitionTemplate(model); }