public static string GetItem(RestCommand command, ReferenceType refType, int refID, int id)
        {
            ActionLogsViewItem item = ActionLogsView.GetActionLogsViewItem(command.LoginUser, id);

            if (item.OrganizationID != command.LoginUser.OrganizationID)
            {
                throw new RestException(HttpStatusCode.Unauthorized);
            }
            return(item.GetXml("ActionItem", true));
        }
        public static string GetActionLogsViewItem(RestCommand command, int actionLogID)
        {
            ActionLogsViewItem actionLogsViewItem = ActionLogsView.GetActionLogsViewItem(command.LoginUser, actionLogID);

            if (actionLogsViewItem.OrganizationID != command.Organization.OrganizationID)
            {
                throw new RestException(HttpStatusCode.Unauthorized);
            }
            return(actionLogsViewItem.GetXml("ActionLogsViewItem", true));
        }