public static string GetActionLog(RestCommand command, int actionLogID) { ActionLog actionLog = ActionLogs.GetActionLog(command.LoginUser, actionLogID); if (actionLog.OrganizationID != command.Organization.OrganizationID) { throw new RestException(HttpStatusCode.Unauthorized); } return(actionLog.GetXml("ActionLog", true)); }