Hello everyone I have a CheckBoxFor in JavaScript and I have a field called Received that is just saving "0" or "1" in the database, so I want to display in the case that I have "1" the check as a true and "0" as a false I would like to know how to do it that is the code:
@for (var i = 0; i < Model.PurchaseOrder.LineItems.Count(); i++)
{
<tr>
<td>
@Html.CheckBoxFor(m => m.LineItems[i].Received)
</td>
</tr>
}
</table>
Model
public bool Received { get; set; }