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.
I tried even this link:
Controller
Active = memberViewModel.active
view
@Html.CheckBoxFor(model => model.active, new { @checked = "checked" })
Viewmodel
public bool active { get; set; }