public override IEnumerable<TemplateViewModel> TypePartEditorUpdate(ContentTypePartDefinitionBuilder builder, IUpdateModel updateModel)
        {
            if (builder.Name != "PaperclipPart")
                yield break;

            var model = new PaperclipTypePartSettings();

            updateModel.TryUpdateModel(model, "PaperclipTypePartSettings", null, null);
			builder.WithSetting("PaperclipTypePartSettings.DefaultPlacement", model.DefaultPlacement);
			builder.WithSetting("PaperclipTypePartSettings.DefaultDisplayType", model.DefaultDisplayType);
			builder.WithSetting("PaperclipTypePartSettings.AllowChangePlacement", model.AllowChangePlacement.ToString());
            builder.WithSetting("PaperclipTypePartSettings.AllowChangeDisplayType", model.AllowChangeDisplayType.ToString());

            yield return DefinitionTemplate(model);
        }
        public override IEnumerable <TemplateViewModel> TypePartEditorUpdate(ContentTypePartDefinitionBuilder builder, IUpdateModel updateModel)
        {
            if (builder.Name != "PaperclipPart")
            {
                yield break;
            }

            var model = new PaperclipTypePartSettings();

            updateModel.TryUpdateModel(model, "PaperclipTypePartSettings", null, null);
            builder.WithSetting("PaperclipTypePartSettings.DefaultPlacement", model.DefaultPlacement);
            builder.WithSetting("PaperclipTypePartSettings.DefaultDisplayType", model.DefaultDisplayType);
            builder.WithSetting("PaperclipTypePartSettings.AllowChangePlacement", model.AllowChangePlacement.ToString());
            builder.WithSetting("PaperclipTypePartSettings.AllowChangeDisplayType", model.AllowChangeDisplayType.ToString());

            yield return(DefinitionTemplate(model));
        }