0
Problem: I have an index that uses a model of the type:
@model IEnumerable<projeto.Models.classe1>
I need to access some properties of classe 2, my classe1 being Ienumerable, how can I access the properties of classe 2?
I tried to pass: Classe1 classe1 {get; set;}.
But when I call the field model.classe1.NomeCampo it does not let because that page uses the Ienumerable type of classe 1.
Ideal Scenario: I’d like to access this classe 2 through the model classe 1.
include your code
– Leandro Angelo