title: Passing table join results to a view?
body: <p>I have the following ASP.Net MVC controller action which joins 2 tables:-</p>
  
  <pre><code>public ActionResult PersonNotes()
  {
      var model = db.Notes
          .Join(db.People, p =&gt; p.NotesListId, n =&gt; n.NotesListId, 
              ((note, person) =&gt; new { note, person })).ToList();
      return View(model);
  }
  </code></pre>
  
  <p>And in my view I have the following model declaration:-</p>
  
  <pre><code>@model IEnumerable&lt;Tuple&lt;Models.Note, Models.Person&gt;&gt;
  </code></pre>
  
  <p>I get the following error:-</p>
  
  <pre><code>System.InvalidOperationException: The model item passed into the dictionary is of type 'System.Collections.Generic.List`1[&lt;&gt;f__AnonymousTypef`2[Models.Note,Models.Person]]', but this dictionary requires a model item of type System.Collections.Generic.IEnumerable`1[System.Tuple`2[Models.Note,Models.Person]]'.
  </code></pre>
  
  <p>I realise that I can just use a ViewModel and a Select() within my join, but it would far more convenient to just have access to all items without having to create a ViewModel. </p>
  
  <p>What is the correct declaration in my view, or is what I am trying to achieve not possible this way? </p>