public override async Task <int> SaveChangesAsync(bool acceptAllChangesOnSuccess, CancellationToken cancellationToken = default(CancellationToken)) { string identityIdentifier = GetIdentityIdentifier(PrincipalResolver.GetCurrentPrincipal()); AddAuditInformation(identityIdentifier); return(await base.SaveChangesAsync(acceptAllChangesOnSuccess, cancellationToken)); }
public override int SaveChanges(bool acceptAllChangesOnSuccess) { string identityIdentifier = GetIdentityIdentifier(PrincipalResolver.GetCurrentPrincipal()); AddAuditInformation(identityIdentifier); return(base.SaveChanges(acceptAllChangesOnSuccess)); }