public void Editar(T entity) { Contexto.Entry(entity).State = EntityState.Modified; this.Salvar(); }
public void Update(T entity) { DB.Entry(entity).State = EntityState.Modified; DB.SaveChanges(); }