Exemplo n.º 1
0
        public virtual IActionResult GeneralCommon()
        {
            //prepare model
            GeneralCommonSettingsModel model = _settingModelFactory.PrepareGeneralCommonSettingsModel();

            return(View(model));
        }
Exemplo n.º 2
0
        public async Task <IActionResult> GeneralCommon()
        {
            if (!await _permissionService.AuthorizeAsync(StandardPermissionProvider.ManageSettings))
            {
                return(AccessDeniedView());
            }

            var model = await _settingModelFactory.PrepareGeneralCommonSettingsModel();

            return(View(model));
        }
Exemplo n.º 3
0
        public virtual IActionResult GeneralCommon()
        {
            if (!_permissionService.Authorize(StandardPermissionProvider.ManageSettings))
            {
                return(AccessDeniedView());
            }

            //prepare model
            var model = _settingModelFactory.PrepareGeneralCommonSettingsModel();

            //notify admin that CSS bundling is not allowed in virtual directories
            if (model.SeoSettings.EnableCssBundling && this.HttpContext.Request.PathBase.HasValue)
            {
                WarningNotification(_localizationService.GetResource("Admin.Configuration.Settings.GeneralCommon.EnableCssBundling.Warning"), true);
            }

            return(View(model));
        }