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

            var model = new TermPartSettings();

            if (updateModel.TryUpdateModel(model, "TermPartSettings", null, null)) {
                builder
                    .WithSetting("TermPartSettings.ChildDisplayType", model.ChildDisplayType)
                    .WithSetting("TermPartSettings.OverrideDefaultPagination", model.OverrideDefaultPagination.ToString())
                    .WithSetting("TermPartSettings.PageSize", model.PageSize.ToString(CultureInfo.InvariantCulture));
            }

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

            var model = new TermPartSettings();

            if (updateModel.TryUpdateModel(model, "TermPartSettings", null, null))
            {
                builder
                .WithSetting("TermPartSettings.ChildDisplayType", model.ChildDisplayType)
                .WithSetting("TermPartSettings.OverrideDefaultPagination", model.OverrideDefaultPagination.ToString())
                .WithSetting("TermPartSettings.PageSize", model.PageSize.ToString(CultureInfo.InvariantCulture));
            }

            yield return(DefinitionTemplate(model));
        }