Ejemplo n.º 1
0
        void CreateAudit(ChangeState changeState)
        {
            foreach (var entry in changeState.Added)
            {
                GenerateAudit(entry, audit => this.Audits.Add(audit), "Added");
            }

            foreach (var entry in changeState.Modified)
            {
                GenerateAudit(entry, audit => this.Audits.Add(audit), "Modified");
            }

            foreach (var entry in changeState.Deleted)
            {
                GenerateAudit(entry, audit => this.Audits.Add(audit), "Deleted");
            }
        }
Ejemplo n.º 2
0
 Task CreateAuditAsync(ChangeState changeState) => Task.Run(() => CreateAudit(changeState));