title: Returning an IEnumerable<> list to a partial view from a view
body: <p>I have a project I am working on for a Meal Planner. I have a simple product model and a Meal model which should be a collection of products.</p>
  
  <p>I am trying to create a "Create" view in which I can enter the name of the meal and I thought that I would return a partial view that would have a list of available products to choose from.</p>
  
  <p>I know you can send a model to the partial view using</p>
  
  <pre><code>@Html.Partial("_ProductList", new MealPlanner.Models.Product())
  </code></pre>
  
  <p>My PartialView takes a</p>
  
  <pre><code>@model IEnumerable&lt;MealPlanner.Models.Product&gt;
  </code></pre>
  
  <p>This obviously throws an error so how would I pass a List of Products to my partial?</p>