I have a collection called:
usuario.Gerencias que viene de (Icollection<Gerencia>)
The doubt I have is that this shows me a list of managements that has various data inside.
I'd like to be able to extract one by passing it a int
. That is, you can do something similar to:
usuario.Gerencias(idpasado) ???
Thank you!
You just have to put the name of your variable, add brackets and the index you need.
But it would be better if you put the code that you handle.