In MVC3 view i have a table made by RadioButtons populated by entityObject:
@model IEnumerable<Table> (View is made as "List")
Below i added a postBack "Save" button:
@using (Html.BeginForm("Save", "MyView", FormMethod.Post, new { ent = Model }))
{
<input type="submit" value="Save" />
}
And in controler i added:
[HttpPost]
public ActionResult Save(List<Table> ent)
{
// do something
}
But is not right. How to correct the code to return all list in controler side. Thx.