public void Update(T obj) { context.Entry(obj).State = EntityState.Modified; context.SaveChanges(); }
public int Atualizar(TEntity entity) { _context.Entry(entity).State = EntityState.Modified; return(_context.SaveChanges()); }