title: How to pass object containing list from View to controller
body: <p>I use a MVC project written with C#.</p>
  
  <p>I've an object 'Recipe' that contains :</p>
  
  <pre><code>int id;
  List&lt;Ingredient&gt; ingredientList;
  String description;
  //and so on
  </code></pre>
  
  <p>When I pass a 'Recipe' object from my controller to my view, the ingredient list contains well the different ingredients of my recipe. In my view, to save the ingredient list, I do this : </p>
  
  <pre><code>@Html.HiddenFor(model=&gt;model.Ingredients)
  </code></pre>
  
  <p>But when I submit my form in my view, so It is going to my controller. And when I use the debugger to see what contains the current recipe, I notice that my ingredient list is empty. I don't know why.</p>
  
  <p>Do you have a solution ? </p>