title: how to pass or reference model between asp.net core razor pages MVVM
body: <p>My MVVM core 3.1 Index page displays database data nicely from it's model using this directive:</p>
  
  <pre><code> @model IndexModel
  </code></pre>
  
  <p>I launch a second page 'TOCPrintable" (for printing the exact same data but styled differently) with this:</p>
  
  <pre><code>&lt;form method="post"&gt;
      &lt;input type="submit" value="Print TOC" asp-page="TOCPrintable" target="_blank"/&gt;
  &lt;/form&gt;
  </code></pre>
  
  <p>The problem: I am unable to pass or reference the IndexModel of the Index page and consume it in the TOCPrintable page.</p>
  
  <p>My reason for referencing/passing the model to the second page is  I want to avoid coding the same database connections, calls, objects, etc. </p>
  
  <p>IS my approach wrong?</p>