private DbEntityEntry <TEntity> GetEntry(TEntity entity) { var entry = _dbContext.Entry(entity); if (entry == null) { _dbSet.Attach(entity); entry = _dbContext.Entry(entity); } return(entry); }
private DbEntityEntry <TEntity> GetEntry(TEntity entity) { var entry = _dbContext.Entry(entity); if (entry == null) { _dbSet.Attach(entity); entry = _dbContext.Entry(entity); } return(entry); }