Example #1
0
        /// <summary>Creates a new, empty AuditDataThreadRelatedEntity object.</summary>
        /// <returns>A new, empty AuditDataThreadRelatedEntity object.</returns>
        public override IEntity Create()
        {
            IEntity toReturn = new AuditDataThreadRelatedEntity();

            // __LLBLGENPRO_USER_CODE_REGION_START CreateNewAuditDataThreadRelated
            // __LLBLGENPRO_USER_CODE_REGION_END
            return toReturn;
        }
Example #2
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();
 }