public override IEnumerable<TemplateViewModel> TypePartEditorUpdate(global::Orchard.ContentManagement.MetaData.Builders.ContentTypePartDefinitionBuilder builder, global::Orchard.ContentManagement.IUpdateModel updateModel)
        {
            if (builder.Name != "PublishNotificationPart")
                yield break;
            var model = new PublishNotificationTypePartSettings();
            updateModel.TryUpdateModel(model, "PublishNotificationTypePartSettings", null, null);
            builder.WithSetting("PublishNotificationTypePartSettings.NotifyOwner",
                (model.NotifyOwner).ToString());
            builder.WithSetting("PublishNotificationTypePartSettings.NotifyContainerOwner",
                (model.NotifyContainerOwner).ToString());

            builder.WithSetting("PublishNotificationTypePartSettings.UsersToNotify",
                (model.UsersToNotify));

            yield return DefinitionTemplate(model);
        }
        public override IEnumerable <TemplateViewModel> TypePartEditorUpdate(global::Orchard.ContentManagement.MetaData.Builders.ContentTypePartDefinitionBuilder builder, global::Orchard.ContentManagement.IUpdateModel updateModel)
        {
            if (builder.Name != "PublishNotificationPart")
            {
                yield break;
            }
            var model = new PublishNotificationTypePartSettings();

            updateModel.TryUpdateModel(model, "PublishNotificationTypePartSettings", null, null);
            builder.WithSetting("PublishNotificationTypePartSettings.NotifyOwner",
                                (model.NotifyOwner).ToString());
            builder.WithSetting("PublishNotificationTypePartSettings.NotifyContainerOwner",
                                (model.NotifyContainerOwner).ToString());

            builder.WithSetting("PublishNotificationTypePartSettings.UsersToNotify",
                                (model.UsersToNotify));

            yield return(DefinitionTemplate(model));
        }