public virtual void Edit(T entity) { _entities.Entry(entity).State = EntityState.Modified; }
public async Task UpdateAsync(T entity) { _dbContext.Entry(entity).State = EntityState.Modified; await _dbContext.SaveChangesAsync(); }