Beispiel #1
0
 /// <summary>
 /// Audits the creation of a new thread by the specified user
 /// </summary>
 /// <param name="userID">User ID.</param>
 /// <param name="threadID">Thread ID.</param>
 /// <returns>true if the save was successful, false otherwise</returns>
 public static bool AuditNewThread(int userID, int threadID)
 {
     AuditDataThreadRelatedEntity toLog = new AuditDataThreadRelatedEntity();
     toLog.AuditActionID = (int)AuditActions.AuditNewThread;
     toLog.UserID = userID;
     toLog.AuditedOn = DateTime.Now;
     toLog.ThreadID = threadID;
     return toLog.Save();
 }