I want to return all the object data that the EditorForModel receives from the user. The Event object has about 5 fields. I'd like to return the entire object to the Save method in the Controller where I can do a DB update. I can't use a foreach loop since the iEnumerator isn't available. How do I access the data within the Actionlink? Thanks!
@model EventsMVC.Models.Event
@{
Layout = null;
}
<!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="width=device-width" />
<title>Edit</title>
</head>
<body>
<div>
@Html.EditorForModel()
@Html.ActionLink("Save", "Edit")
@Html.ActionLink("Cancel and return to List", "Index")
</div>
</body>
</html>