After having problems getting a Razor View to render a ViewModel with an embedded IEnumerable
I came across the following post:
View Model IEnumerable<> property is coming back null (not binding) from post method?
I implemented the suggested solution using an editor template but my View was only displaying the first property in the embedded IEnumerable
. I implemented both solutions from the above post but the one with the EditorFor
template is not working for me. My view displays only the ID
property.
Does anyone have any ideas why the soution with the editor template may not be working for my setup? I have implemented it exactly as suggested.