title: MVC: Send parameters to Action in Controller with Bootstrap button
body: <p>View:</p>
  
  <pre><code>@using (Html.BeginForm("UpdateMaterial", "MyController", FormMethod.Post, Model.MaterialId))
      {
      @Html.AntiForgeryToken()
      &lt;input type="submit" class="btn btn-primary custom" value="Derivate Material" /&gt;
      }
  </code></pre>
  
  <p>Controller:</p>
  
  <pre><code>[HttpPost]
  public ActionResult UpdateMaterial(int? matId)
          {
              if (matId == null)
              {
                  return new HttpStatusCodeResult(HttpStatusCode.BadRequest);
              }
          //do something here
          }
  </code></pre>
  
  <p>The <em>Id</em> I send its always null. How do i change this?</p>