title: asp.net mvc 3 variable length editable list
body: <p>Following <a href="http://blog.stevensanderson.com/2010/01/28/editing-a-variable-length-list-aspnet-mvc-2-style/" rel="nofollow noreferrer">this</a> post and the other posts that it links to, I have successfully built a page with a variable legnth editable list.</p>
  <p>Now, I need to do another page with similar functionality, but going a step further. Basically I need to create a variable length list of objects as I have already done, but in this case each object in the list needs to have its own variable length editable sub list.</p>
  <p>I can build the view with no problem but I guess I am lost as to how I will handle this in my POST controller method to save the objects.</p>
  <p>Will my controller take 2 IEnumerable parameters?
  I.E.</p>
  <pre><code>public ActionResult SaveList(IEnumerable&lt;MainList&gt;, IEnumerable&lt;Sublist&gt;)
  {
  
  }
  </code></pre>
  <p>It seems like this would work but I have no way of associatiing the objects in the sublist collection with the appropriate object in the main list collection.</p>
  <p>What am I missing?</p>