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