What I'm trying to do is pass the item that was clicked to the controller for editing but the only thing I can pass to the controller is a string.
view:
foreach (MenuItemViewModel menuitem in category.MenuItemList) { <span class="MenuItemTitel"> @if (IsAdmin) { <span class="AdminSpan"> @Html.ActionLink("Edit", "EditPage", "Admin", new { name = menuitem.Title }) </span> } @menuitem.Title </span> } Controller:
public ActionResult EditPage(MenuItemViewModel MenuItem) {}