title: MVC: Dictionary requires a model item of type 'System.Collections.Generic.IEnumerable`1
body: <p>I am getting this error and I'm not sure if I am able to do this, here is my code..</p>
  
  <p>Application controller </p>
  
  <pre><code>public ActionResult AppView()
  {
      List&lt;Application&gt; apps;
      using (ISiteDbContext context = _resolver.GetService&lt;ISiteDbContext&gt;())
      {
          apps = context.Applications.ToList();
      } 
      return PartialView("AppView", apps.OrderBy(a =&gt; a.Name).ToList());
  }
  </code></pre>
  
  <p>Render partial - this is within a view which is in the home controller.</p>
  
  <pre><code>@{Html.RenderPartial("~/Views/Application/AppView.cshtml", new Example.Services.DAL.Application());} 
  </code></pre>
  
  <p>and my application view</p>
  
  <pre><code>@model IEnumerable&lt;Example.Services.DAL.Application&gt;
  
  @{
      ViewBag.Title = "Applications";
  }
  
  &lt;h2&gt;Applications&lt;/h2&gt;
  
  &lt;p&gt;
      @Html.ActionLink("Add New Application", "Create")
  &lt;/p&gt;
  &lt;table&gt;
      &lt;tr&gt;
          &lt;th&gt;
              @Html.DisplayNameFor(model =&gt; model.Name)
          &lt;/th&gt;
          &lt;th&gt;&lt;/th&gt;
      &lt;/tr&gt;
  
      @foreach (var item in Model)
      {
      &lt;tr&gt;
          &lt;td&gt;
              @Html.DisplayFor(modelItem =&gt; item.Name)
          &lt;/td&gt;
          &lt;td&gt;
              @Html.ActionLink("Edit", "Edit", new { id = item.ID }) |
              @Html.ActionLink("Details", "Details", new { id = item.ID }) |
              @Html.ActionLink("Delete", "Delete", new { id = item.ID })
          &lt;/td&gt;
      &lt;/tr&gt;
      }
  
  &lt;/table&gt;
  </code></pre>
  
  <p>full error message:</p>
  
  <blockquote>
    <p>The model item passed into the dictionary is of type
    'Example.Services.DAL.Application', but this dictionary requires a
    model item of type
    'System.Collections.Generic.IEnumerable`1[Example.Services.DAL.Application]'.</p>
  </blockquote>