I have a question regarding a Form Post of an complex Model. My Model has a subclass and IEnumerables:
public class MyViewModel
{
public int SingleInteger { get; set; }
public IEnumerable<int> MultipleInts { get; set; }
public IEnumerable<MySubclass> AssembledClass { get; set; }
public IEnumerable<string> MultipleStrings { get; set; }
}
public class MySubclass
{
public int Quantity { get; set; }
public int Type{ get; set; }
}
What is the best way to get the Input from my View to my Controller? Can the Modelbinder even bind this?