Пример #1
0
        public ActionResult ThemeSettingsPOST(ThemeSettingsViewModel viewModel)
        {
            if (!Services.Authorizer.Authorize(Permissions.ApplyTheme, T("Couldn't update theme settings")))
            {
                return(new HttpUnauthorizedResult());
            }

            _settingsService.UpdateSettingsRecord(viewModel);
            Services.Notifier.Information(T("Your settings have been saved."));
            return(RedirectToAction("ThemeSettings"));
        }