Hi,
I am trying to create my own HTML Helper which takes in an expression (similar to the built-in LabelFor<> helper. I have found examples to obtain the value of a property when the expression is similar to this:
model => model.Forename
However, in some of my models, I want to obtain properties in child elements, e.g.
model => mode.Person.Forename
In these examples, I cannot find anyway to (easily) obtain the value of Forename. Can anybody advise on how I should be getting this value.
Thanks