title: Partial Views with view models different to the main view
body: <p>My home-screen has a view model of <code>DashboardViewModel</code>. It has PartialViews with their own ViewModels such as <code>CustomerSearchViewModel</code> and <code>SelectProductViewModel</code>. </p>
  
  <p>All three ViewModels are separate. </p>
  
  <p>When I run the application I get this error: </p>
  
  <blockquote>
    <p>The model item passed into the dictionary is of type
    'Invoice.Web.ViewModels.DashboardViewModel', but this dictionary
    requires a model item of type
    'Invoice.Web.ViewModels.SearchCustomerWindowVM'.</p>
  </blockquote>
  
  <p>I wonder what should I do to resolve this issue. </p>
  
  <p>As planned, the Home screen will eventually integrate a lot of PartialViews with their own  view models. Do I declare the Partial-view-models inside the <code>DashboardViewModel</code>? or do I simply have a single big <code>DashboardViewModel</code> for all partialViews to come? </p>