4
I need to bring up a list of ITEMS
, with only the Order id. The way I do it is this, but it brings me only one Item, I want to be able to bring all the items I have, with the Order ID.
var listaItems = new ItemRepositorio().BuscarTodos().FirstOrDefault(c => c.PedidoId == Id);
Friend in your
ItemRepositorio()
does not have a method to do this! What is the code of yourItemRepositorio()
and the Entity! classes improve your question, because you may be making improper use of this code!– novic