public override int SaveChanges() { try { EFHelper.ApplyAuditRules(this); var saved = base.SaveChanges(); return(saved); } catch (DbUpdateException) { throw; } }
public override Task <int> SaveChangesAsync(CancellationToken cancellationToken = default(CancellationToken)) { EFHelper.ApplyAuditRules(this); return(base.SaveChangesAsync(cancellationToken)); }