I can\'t seem to figure out how to send back the entire ViewModel to the controller to the \'Validate and Save\' function.
Here is my controller:
[H
Try to loop with the folowing statement not with FOREACH
@for (var i = 0; i < Model.itemlist.Count; i++) { @Html.HiddenFor(x => x.itemlist[i].Id) @Html.HiddenFor(x => x.itemlist[i].Name) @Html.DisplayFor(x => x.itemlist[i].Name) }