I would like to rewrite the below code using a button instead of an ActionLink. Any help would be greatly appreciated. Thanks.
@Html.ActionLink("Test Link","Index", "Home", new { id = item.id})
Is it possible to write something like the below or is there a better way ? I'm not sure about syntax either, so please feel free to correct it.
<input type="button" value="Submit" onclick="location.href='@Url.Action("Index", "Home", new { id = @Model.FirstorDefault.Id.ToString()}, null)'" />