Example #1
0
        // GET: Admin/Settings
        public virtual ActionResult Index()
        {
            SettingSearchModel model = _settingModelFactory.PrepareSettingSearchModel(new SettingSearchModel());

            AddBreadcrumb("Ayarlar", "/Admin/Settings/Index");
            AddPageHeader("Tüm Ayarlar", "Ayarları Yapılandırın");
            return(View(model));
        }
        public virtual ActionResult AllSettings(string settingName)
        {
            //prepare model
            var model = _settingModelFactory.PrepareSettingSearchModel(new SettingSearchModel()
            {
                SearchSettingName = WebUtility.HtmlEncode(settingName)
            });

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

            //prepare model
            var model = _settingModelFactory.PrepareSettingSearchModel(new SettingSearchModel());

            return(View(model));
        }
Example #4
0
        public virtual IActionResult AllSettings(string settingName)
        {
            if (!_permissionService.Authorize(StandardPermission.ManageSettings))
            {
                return(AccessDeniedView());
            }

            //prepare model
            var model = _settingModelFactory.PrepareSettingSearchModel(new SettingSearchModel()
            {
                SearchSettingName = WebUtility.HtmlEncode(settingName)
            });

            return(View(model));
        }