コード例 #1
0
        public static AuditEntry CreateAuditEntry(IObjectRepository tdb, string type, string note, string userName)
        {
            AuditEntry newAuditEntry = new AuditEntry();

            newAuditEntry.SetContext(userName);
            newAuditEntry.Type = type;
            newAuditEntry.Note = note;
            tdb.AuditEntries.Add(newAuditEntry);
            return(newAuditEntry);
        }