title: how to set a check box as default?
body: <p>I'm using asp.net MVC 5 i want to set a check box as default but I'm failing to achieve this, in a razor.</p>
  
  <p>I tried even this link:</p>
  
  <blockquote>
    <p><a href="https://stackoverflow.com/questions/6157293/how-do-i-set-a-checkbox-in-razor-view">How do I set a checkbox in razor view?</a></p>
  </blockquote>
  
  <p><strong>Controller</strong></p>
  
  <pre><code> Active = memberViewModel.active
  </code></pre>
  
  <p><strong>view</strong></p>
  
  <pre><code> @Html.CheckBoxFor(model =&gt; model.active, new { @checked = "checked" })
  </code></pre>
  
  <p><strong>Viewmodel</strong></p>
  
  <pre><code> public bool active { get; set; }
  </code></pre>