Exemple #1
0
        public ActionResult Configure(GlimpseSettings settings)
        {
            var model = new ConfigurationModel();

            MiniMapper.Map(settings, model);

            return(View(model));
        }
Exemple #2
0
        public ActionResult Configure(ConfigurationModel model, GlimpseSettings settings)
        {
            if (!ModelState.IsValid)
            {
                return(Configure(settings));
            }

            MiniMapper.Map(model, settings);
            NotifySuccess(T("Admin.Common.DataSuccessfullySaved"));

            return(RedirectToConfiguration("SmartStore.Glimpse"));
        }
Exemple #3
0
        public ActionResult Configure(GlimpseSettings model, FormCollection form)
        {
            if (!ModelState.IsValid)
            {
                return(Configure());
            }

            ModelState.Clear();

            // load settings for a chosen store scope
            var storeDependingSettingHelper = new StoreDependingSettingHelper(ViewData);
            var storeScope = this.GetActiveStoreScopeConfiguration(_storeService, _workContext);

            storeDependingSettingHelper.UpdateSettings(model /*settings*/, form, storeScope, _settingService);

            return(Configure());
        }