In a form, I want to add a CheckBox to bind model value back to action. My model column is of type bool?
I tried the following code but getting error "Cannot implecitly convert type bool? to bool"
@Html.CheckBoxFor(m=>m.AccomPublic)
Please help me with correct way of using @HTML.CheckBoxFor.