Exemplo n.º 1
0
        // GET: TenantSettings
        public ActionResult Index()
        {
            var groups = settingManager.GetTenantSettingGroup(TenantId);

            if (!groups.Any(p => p.Name == "站点设置"))
            {
                settingManager.AddOrUpdateTenantGroupSetting(new App_SettingGroup
                {
                    Description        = "设置网站基础信息以及相关配置",
                    IsVisibleToClients = false,
                    Name        = "站点设置",
                    Scopes      = SettingScopes.Application,
                    DisplayName = "站点设置"
                }, TenantId);
                settingManager.AddOrUpdateTenantGroupSetting(new App_SettingGroup
                {
                    Description        = "设置服务器事件的开关",
                    IsVisibleToClients = false,
                    Name        = "服务器事件设置",
                    Scopes      = SettingScopes.Application,
                    DisplayName = "服务器事件设置"
                }, TenantId);
            }
            return(View());
        }