Example #1
0
        public async Task <IActionResult> Media()
        {
            if (!await _permissionService.AuthorizeAsync(StandardPermissionProvider.ManageSettings))
            {
                return(AccessDeniedView());
            }

            var model = await _settingModelFactory.PrepareMediaSettingsModel();

            return(View(model));
        }
Example #2
0
        public virtual IActionResult Media()
        {
            if (!_permissionService.Authorize(StandardPermissionProvider.ManageSettings))
            {
                return(AccessDeniedView());
            }

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

            return(View(model));
        }