public void Intercept(IInvocation invocation) { using (var context = new BlDbContext()) { invocation.Proceed(); context.SaveChanges(); } }
public void Add(TEntity entity) { BaseRepository.Add(entity); _dataContext.SaveChanges(); }
public void Intercept(IInvocation invocation) { using (var context = new BlDbContext()) { invocation.Proceed(); context.SaveChanges(); } }
public void Add(TEntity entity) { BaseRepository.Add(entity); _dataContext.SaveChanges(); }