title: ASP .NET ViewModel error
body: <p>I have a problem . When he calls AssortmentController thus "/ assortment/kindslist?kindname=horror"
  I get the error:</p>
  
  <blockquote>
    <p>The model item passed into the dictionary is of type
    'System.Collections.Generic.List`1[Isf.Models.Movie]', but this
    dictionary requires a model item of type
    'Isf.ViewModels.HomeViewModel'.</p>
  </blockquote>
  
  <p>This is my AssortmentController:</p>
  
  <pre><code>public class AssortmentController : Controller
      {
          AssortmentRelationships db = new AssortmentRelationships();
          // GET: Assortment
          public ActionResult Index()
          {
              return View();
          }
  
          public ActionResult ExplicationMovie(string moviename)
          {
              return View();
          }
  
          public ActionResult KindsList(string kindname)
          {
              var kinds = db.Kinds.Include("Movies").Where(k =&gt; k.KindName.ToUpper() == kindname.ToUpper()).Single();
              var movies = kinds.Movies.ToList(); 
              return View(movies);
          }
  
          [ChildActionOnly]
          public ActionResult KindsMenu()
          {
              var kinds = db.Kinds.ToList();
  
              return PartialView("_KindsMenu", kinds);
          }
      }
  </code></pre>
  
  <p>KindsList view:</p>
  
  <pre><code>&lt;div class="container"&gt;
      &lt;div class="row"&gt;
          &lt;div class="col-xs-12 col-md-2" id="right-list"&gt;
               @Html.Action("KindsMenu")
          &lt;/div&gt;
          &lt;div class="col-xs-12 col-md-10"&gt;
               test
          &lt;/div&gt;
      &lt;/div&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>_KindsMenu view:</p>
  
  <pre><code>@model IEnumerable&lt;Isf.Models.Kind&gt;
  
  &lt;ul&gt;
      @foreach (var kind in Model)
      {
          &lt;li&gt;
              &lt;a href="#"&gt;
                  &lt;button class="btn btn-default" type="button"&gt;aaa&lt;/button&gt;
              &lt;/a&gt;
          &lt;/li&gt;
      }
  &lt;/ul&gt;
  </code></pre>
  
  <p>_MoviesList view:</p>
  
  <pre><code>@model Isf.Models.Movie
  
  &lt;div class="remove-all-margin-padding" id="category_view"&gt;
       &lt;img class="hover_detail" src="~/img/covers/1.jpg" /&gt;
   &lt;/div&gt;
  </code></pre>
  
  <p>PartialView is ok. All is ok if I comment KindsList action... 
  I dont use viewmodel because I use html.action in KindsList view...
  I've done so many times and it was always ok</p>