title: asp.net mvc @Html.CheckBoxFor
body: <p>I have checkboxes in my form<br>
  <img src="https://i.stack.imgur.com/VqFk9.png" alt="enter image description here"></p>
  
  <p>I added at my model </p>
  
  <pre><code> using System;
   using System.Collections.Generic;
   using System.Linq;
   using System.Web;
  
   namespace CorePartners_Site2.Models
   {
  public class CareerForm
       {
      //....
      public List&lt;CheckBoxes&gt; EmploymentType { get; set; } 
        }
   }
  
   public class CheckBoxes
   {
       public string Text { get; set; }
       public bool Checked { get; set; }
   }
  </code></pre>
  
  <p>and added at my form</p>
  
  <pre><code>@Html.CheckBoxFor(model =&gt; model.EmploymentType, new { id = "employmentType_1" })
  @Html.CheckBoxFor(model =&gt; model.EmploymentType, new { id = "employmentType_2" })
  @Html.CheckBoxFor(model =&gt; model.EmploymentType, new { id = "employmentType_3" })
  </code></pre>
  
  <p>but I get the mistake<br>
  <img src="https://i.stack.imgur.com/oWiXP.png" alt="enter image description here"></p>
  
  <p>What's wrong?</p>