public void SaveGlobalSettings(GlobalSettingsDto settings) { DeleteExistingGlobalSettings(); Store.Save(new GlobalSettings {SettingsId = SiteSpecificSettingsId, Settings = settings}); _log.InfoFormat( "User '{0}' saved new global settings (AllowUserSettings:'{1}',SelectedPageTypeIds:'{2}') for id '{3}'.", _context.User.Identity.Name, settings.AllowUserSettings, settings.SelectedPageTypeIds, SiteSpecificSettingsId); }
public void SaveGlobalSettings(GlobalSettingsDto settings) { DeleteExistingGlobalSettings(); Store.Save(new GlobalSettings { SettingsId = SiteSpecificSettingsId, Settings = settings }); _log.InfoFormat( "User '{0}' saved new global settings (AllowUserSettings:'{1}',SelectedPageTypeIds:'{2}') for id '{3}'.", _context.User.Identity.Name, settings.AllowUserSettings, settings.SelectedPageTypeIds, SiteSpecificSettingsId); }
private void SaveGlobalSettings(object sender, GlobalSettingsEventArgs e) { var newSettings = new GlobalSettingsDto { AllowUserSettings = e.AllowUserSettings, SelectedPageTypeIds = string.IsNullOrEmpty(e.SelectedPageTypeIds) ? string.Empty : e.SelectedPageTypeIds }; _globalSettingsRepository.SaveGlobalSettings(newSettings); DisplaySystemMessage("/PageTypeTreeFilter/GlobalSettings/SaveSuccessfulMessage"); }