public ActionResult Configure(GlimpseSettings settings) { var model = new ConfigurationModel(); MiniMapper.Map(settings, model); return(View(model)); }
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")); }
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()); }