Model Binding to a List MVC 4
This is how I do it if I need a form displayed for each item, and inputs for various properties. Really depends on what I’m trying to do though. ViewModel looks like this: public class MyViewModel { public List<Person> Persons{get;set;} } View(with BeginForm of course): @model MyViewModel @for( int i = 0; i < Model.Persons.Count(); … Read more