title: The model item passed into the ViewDataDictionary is of type 'System.ValueTuple`2
body: <p>I've defined model in <code>_ShowComments.cshtml</code> view as a tuple type but when I want to call this Partialview</p>
  
  <p>I get this error, when I call that method in <code>Default.cshtml</code>.</p>
  
  <p>How can I solve it?</p>
  
  <p><strong>Error Message:</strong></p>
  
  <blockquote>
    <p>InvalidOperationException: The model item passed into the
    ViewDataDictionary is of type
    'System.ValueTuple`2[System.Collections.Generic.List`1[Jahan.Beta.Web.App.Models.Comment],System.Nullable`1[System.Int32]]',
    but this ViewDataDictionary instance requires a model item of type
    'System.ValueTuple`2[System.Collections.Generic.IList`1[Jahan.Beta.Web.App.Models.Comment],System.Nullable`1[System.Int32]]'.</p>
  </blockquote>
  
  <p><strong>Default.cshtml:</strong></p>
  
  <pre><code>@model List&lt;Comment&gt;
  
  &lt;div class="media mb-4"&gt;
      &lt;div class="media-body"&gt;
          @Html.Partial("_ShowComments", ValueTuple.Create&lt;List&lt;Comment&gt;, int?&gt;(Model,null))
      &lt;/div&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p><strong>_ShowComments.cshtml:</strong></p>
  
  <pre><code>@model (IList&lt;Comment&gt; comments, int? parentId)
  
  @if (Model.comments.Any(c =&gt; c.ParentId == Model.parentId))
  {
      &lt;ul class="list-unstyled"&gt;
          @foreach (var childComment in Model.comments.Where(c =&gt; c.ParentId == Model.parentId))
          {
              &lt;li class="media"&gt;
                  @Html.Partial("_ShowComments", (Model.comments, childComment.Id))
              &lt;/li&gt;
          }
      &lt;/ul&gt;
  }
  </code></pre>