title: Checkbox not bind in model binding in ASP.NET MVC CORE
body: <p>Checkbox not bind in model binding, </p>
  
  <p>the hidden input in bind correctly but only checkbox not work</p>
  
  <p>that is my class:</p>
  
  <pre><code>public class SelectedIDsViewModel
  {
      public bool IsChecked { get; set; }
  
      public int ID { get; set; }
  
  }
  </code></pre>
  
  <p>and that is checkbox:</p>
  
  <pre><code>&lt;form asp-action="DeleteAll" asp-controller="Admin" method="post"&gt;
  
  @for (int i = 0; i &lt; Model.ArticleDetails.Count(); i++)
  {
  
        &lt;input name="@("ddd["+ i + "].IsChecked")" type="checkbox" /&gt;
        &lt;input name="@("ddd["+ i + "].ID")" 
          value="@Model.ArticleDetails[i].ArticleID" type="hidden" /&gt;
  }
  
  &lt;/form&gt; 
  </code></pre>
  
  <p>and that is my method action:</p>
  
  <pre><code>[HttpPost]
  public IActionResult DeleteAll(List&lt;SelectedIDsViewModel&gt; ddd)
  {
  
       return View();
  }
  </code></pre>