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

            var settings = new SubmissionLimitPartSettings {
            };

            if (updateModel.TryUpdateModel(settings, "SubmissionLimitPartSettings", null, null)) {

                builder.WithSetting("SubmissionLimitPartSettings.Limit", settings.Limit.ToString(CultureInfo.InvariantCulture));
                builder.WithSetting("SubmissionLimitPartSettings.Unit", settings.Unit.ToString(CultureInfo.InvariantCulture));
            }

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

            var settings = new SubmissionLimitPartSettings {
            };

            if (updateModel.TryUpdateModel(settings, "SubmissionLimitPartSettings", null, null))
            {
                builder.WithSetting("SubmissionLimitPartSettings.Limit", settings.Limit.ToString(CultureInfo.InvariantCulture));
                builder.WithSetting("SubmissionLimitPartSettings.Unit", settings.Unit.ToString(CultureInfo.InvariantCulture));
            }

            yield return(DefinitionTemplate(settings));
        }