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

            var model = new ReviewTypePartSettings();
            updateModel.TryUpdateModel(model, "ReviewTypePartSettings", null, null);
            builder.WithSetting("ReviewTypePartSettings.ShowStars", model.ShowStars.ToString());

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

            var model = new ReviewTypePartSettings();

            updateModel.TryUpdateModel(model, "ReviewTypePartSettings", null, null);
            builder.WithSetting("ReviewTypePartSettings.ShowStars", model.ShowStars.ToString());

            yield return(DefinitionTemplate(model));
        }