public ActionResult Configure()
        {
            int siteScope = ContollerExtensions.GetActiveSiteScopeConfiguration(this, this._siteService, this._workContext);
            CustomBannerSettings customBannerSettings = this._settingService.LoadSetting <CustomBannerSettings>(siteScope);
            ConfigurationModel   model = new ConfigurationModel();

            model.MaxBannerHeight   = customBannerSettings.MaxBannerHeight;
            model.StretchPicture    = customBannerSettings.StretchPicture;
            model.ShowBorderTop     = customBannerSettings.ShowBorderTop;
            model.ShowBorderBottom  = customBannerSettings.ShowBorderBottom;
            model.BorderBottomColor = customBannerSettings.BorderBottomColor;
            model.BorderTopColor    = customBannerSettings.BorderTopColor;
            SiteDependingSettingHelper siteDependingSettingHelper = new SiteDependingSettingHelper(base.ViewData);

            siteDependingSettingHelper.GetOverrideKeys(customBannerSettings, model, siteScope, this._settingService, true);
            return(base.View(model));
        }
        public ActionResult Configure(ConfigurationModel model, FormCollection form)
        {
            if (!base.ModelState.IsValid)
            {
                return(this.Configure());
            }
            base.ModelState.Clear();
            int siteScope = ContollerExtensions.GetActiveSiteScopeConfiguration(this, this._siteService, this._workContext);
            CustomBannerSettings customBannerSettings = this._settingService.LoadSetting <CustomBannerSettings>(siteScope);

            customBannerSettings.MaxBannerHeight   = model.MaxBannerHeight;
            customBannerSettings.StretchPicture    = model.StretchPicture;
            customBannerSettings.BorderBottomColor = model.BorderBottomColor;
            customBannerSettings.BorderTopColor    = model.BorderTopColor;
            customBannerSettings.ShowBorderBottom  = model.ShowBorderBottom;
            customBannerSettings.ShowBorderTop     = model.ShowBorderTop;
            SiteDependingSettingHelper siteDependingSettingHelper = new SiteDependingSettingHelper(base.ViewData);

            siteDependingSettingHelper.UpdateSettings(customBannerSettings, form, siteScope, this._settingService);
            this._settingService.ClearCache();
            return(this.Configure());
        }