public async Task <TEntity> Update(TEntity entity) { _context.Entry(entity).State = EntityState.Modified; await _context.SaveChangesAsync(); return(entity); }
public override TEntity Update(TEntity entity) { AttachIfNot(entity); _dbContext.Entry(entity).State = EntityState.Modified; return(entity); }