public override async Task <IDisplayResult> UpdateAsync(NoCaptchaSettings section, IUpdateModel updater, string groupId)
        {
            if (groupId == GroupId)
            {
                var model = new NoCaptchaSettingsViewModel();

                if (await updater.TryUpdateModelAsync(model, Prefix))
                {
                    section.SiteKey    = model.SiteKey?.Trim();
                    section.SiteSecret = model.SiteSecret?.Trim();

                    // Reload tenant to apply settings.
                    _shellHost.ReloadShellContext(_shellSettings);
                }
            }

            return(Edit(section));
        }
        public override async Task <IDisplayResult> UpdateAsync(NoCaptchaSettings section, BuildEditorContext context)
        {
            if (context.GroupId == GroupId)
            {
                var model = new NoCaptchaSettingsViewModel();

                if (await context.Updater.TryUpdateModelAsync(model, Prefix))
                {
                    section.SiteKey    = model.SiteKey?.Trim();
                    section.SiteSecret = model.SiteSecret?.Trim();

                    // Reload tenant to apply settings.
                    await _shellHost.ReloadShellContextAsync(_shellSettings);
                }
            }

            return(await EditAsync(section, context));
        }