@ HTML.CheckBoxfor does not pass value to the model [closed]

1

I have the following problem: I have a checkbox on the page but even marking it, in controller Model continues with field lavagem = false .

Model

public bool lavagem { get; set; }

View

@Html.CheckBoxFor(model => model.lavagem, htmlAttributes: new  { id="chkLavagem" })
    
asked by anonymous 06.06.2015 / 19:46

0 answers