示例#1
0
 public ApplicationSetting()
 {
     //To ensure that missing database values for settings do not completely brick the
     //  entire instance, make sure all default settings are initialized in the ctor
     ApplicationName = "TicketDesk";
     Permissions = new ApplicationPermissionsSetting();
     SelectLists = new ApplicationSelectListSetting();
     SecuritySettings = new ApplicationSecuritySetting();
     ClientSettings = new ClientSetting();
 }
 public static string GetDefaultTextEditorType(this ClientSetting clientSettings)
 {
     return(GetClientSetting(clientSettings, "DefaultTextEditorType", "summernote"));
 }
 public static string GetDefaultSiteRootUrl(this ClientSetting clientSettings)
 {
     return(GetClientSetting(clientSettings, "DefaultSiteRootUrl", string.Empty));
 }