Example #1
0
        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));
        }
Example #2
0
        public override int SaveChanges(bool acceptAllChangesOnSuccess)
        {
            string identityIdentifier = GetIdentityIdentifier(PrincipalResolver.GetCurrentPrincipal());

            AddAuditInformation(identityIdentifier);

            return(base.SaveChanges(acceptAllChangesOnSuccess));
        }