public static string GetServiceSettings(RestCommand command) { ServiceSettings serviceSettings = new ServiceSettings(command.LoginUser); serviceSettings.LoadByOrganizationID(command.Organization.OrganizationID); if (command.Format == RestFormat.XML) { return(serviceSettings.GetXml("ServiceSettings", "ServiceSetting", true, command.Filters)); } else { throw new RestException(HttpStatusCode.BadRequest, "Invalid data format"); } }