MVC - Call a controller method on button click
<p>I am trying to call a controller method when the user clicks a button, I also need a variable passed to this method. This is the code I have.</p>

<p>View:</p>

<pre><code> &lt;input type="number" id="nbrMetric" name=metricNbr class="form-control" style="width:75px;" min="0"&gt;

@Html.ActionLink("Search", "InputTest", "CustomersController", new { @class = "btn btn-info", @Metric = "nbrMetric" })
</code></pre>

<p>Controller:</p>

<pre><code>    public ActionResult InputTest(int Metric)
            {
               //Do Something

                return View();
            }
</code></pre>