title: foreach .. variables of type 'TodoTable' because 'TodoTable' does not contain a public instance or extension definition for 'GetEnumerator' Error
body: <p>I have my View page below:</p>
  <pre><code>@model ToDoListApp.Models.TodoTable
  
  @{
      ViewData[&quot;Title&quot;] = &quot;Urgent&quot;;
  }
  
  @foreach (var item in Model) {
      &lt;p&gt;@item.Id&lt;/p&gt;
      &lt;p&gt;@item.Name&lt;/p&gt;
  }
  </code></pre>
  <p>Model:</p>
  <pre class="lang-cs prettyprint-override"><code>namespace ToDoListApp.Models
  {
      public partial class TodoTable
      {
          public int Id { get; set; }
          public string Name { get; set; } = null!;
          public bool Done { get; set; }
          public bool Urgent { get; set; }
      }
  }
  </code></pre>
  <hr />
  <p>Controller:</p>
  <pre class="lang-cs prettyprint-override"><code>[HttpGet]
  public IActionResult Urgent(short id)
  {
      var Task = db.TodoTables.SingleOrDefault(i =&gt; i.Id == id);
      return View(&quot;Urgent&quot;, Task);
  }
  </code></pre>
  <p>But I am getting an error:</p>
  <p><a href="https://i.stack.imgur.com/2x1bV.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/2x1bV.jpg" alt="enter image description here" /></a></p>
  <p>How I can solve the problem?</p>