Net MVC and I have a table with products I want to buy.
I want to use a Checkbox to confirm the purchase.
But how can I insert the ID in a List<int>?
I have a class Approved with an attribute List<int> approve
I tried:
@Html.CheckBoxFor(m.approve.Add(id))@Html.CheckBoxFor(m=>m.approve.Add(id))@Html.CheckBoxFor(ViewBag.l.approve.Add(id)
How can that task be done ?