title: using CheckBoxFor
body: <p>I am having a class Role as follows;</p>
  
  <pre><code>public enum Role
  {                                            
      User1 = 1,
      User2 = 2,
      User3 = 3, 
      User4 = 4
  }
  </code></pre>
  
  <p>I have the following codes in my model</p>
  
  <pre><code>public Role[] UserRoles { get; set; }
   User user = User.Load(1);
          UserRoles = user.Roles;
  </code></pre>
  
  <p>My question is as follows:
  I want to have a checkbox for each Role and if Role == userRoles, the checkbox is true else false.  How can I use @HTml.CheckboxFor...Can I have an example please.</p>