title: InvalidOperationException: The model item passed into the ViewDataDictionary
body: <p>There are many questions around this topic I know but I tried different things and couldn't solve. So my list return code is this, this is QuestionsController, model is Question</p>
  <pre><code>public async Task&lt;IActionResult&gt; Index()
  {
       return View(await _context.Question.ToListAsync());
  }
  </code></pre>
  <p>This is my cshtml and model tag</p>
  <pre><code>@model IEnumerable&lt;SocialLearningCommunity.Models.Question&gt;
  </code></pre>
  <p>Error</p>
  <blockquote>
  <p>InvalidOperationException: The model item passed into the
  ViewDataDictionary is of type
  'System.Collections.Generic.List`1[SocialLearningCommunity.Models.Question]',
  but this ViewDataDictionary instance requires a model item of type
  'SocialLearningCommunity.Models.User'.</p>
  </blockquote>
  <p>Data class</p>
  <pre><code>public DbSet&lt;User&gt; User { get; set; }
  public DbSet&lt;Question&gt; Question { get; set; }
  </code></pre>
  <p>Thanks.</p>