private static ContentManagerSetting SetBoolSetting(bool settingBool, int id) { ContentManagerClient client = new ContentManagerClient(); ContentManagerSetting setting = client.GetSetting(id); setting.Value = settingBool.ToString(); return client.SaveSetting(setting); }
private static bool GetBoolSetting(int id) { ContentManagerClient client = new ContentManagerClient(); ContentManagerSetting setting = client.GetSetting(id); bool settingBool; Boolean.TryParse(setting.Value, out settingBool); return settingBool; }