Model binding postback data to a controller action parameter of type List<T>
问题 I have a strong type view of type List<List<MyViewModelClass>> The outer list will always have two lists of List<MyViewModelClass> . For each of the two outer lists I want to display a group of checkboxes. Each set can have an arbitrary number of choices. My view model class looks similar to this: public class MyViewModelClass { public Area Area { get; set; } public bool IsGeneric { get; set; } public string Code { get; set; } public bool IsChecked { get; set; } } So the final view will look