public static string GetServiceSetting(RestCommand command, int serviceSettingID) { ServiceSetting serviceSetting = ServiceSettings.GetServiceSetting(command.LoginUser, serviceSettingID); if (serviceSetting.OrganizationID != command.Organization.OrganizationID) { throw new RestException(HttpStatusCode.Unauthorized); } return(serviceSetting.GetXml("ServiceSetting", true)); }