title: ASP.NET MVC - Razor - Overloading a button with action, controller, and html attributes
body: <p>I would like to rewrite the below code using a button instead of an ActionLink. Any help would be greatly appreciated. Thanks.</p>
  
  <pre><code>@Html.ActionLink("Test Link","Index", "Home", new { id = item.id})
  </code></pre>
  
  <p>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.</p>
  
  <pre><code>&lt;input type="button" value="Submit" onclick="location.href='@Url.Action("Index", "Home", new { id = @Model.FirstorDefault.Id.ToString()}, null)'" /&gt;
  </code></pre>