title: MVC4 - One form 2 submit buttons
body: <p>I followed the instructions on this post:
  <a href="https://stackoverflow.com/questions/5702549/asp-net-mvc3-razor-with-multiple-submit-buttons">Asp.net mvc3 razor with multiple submit buttons</a>
  and here is my model:</p>
  
  <pre><code>public class AdminModel
  {
    public string Command { get; set; }
  }
  </code></pre>
  
  <p>My Controller</p>
  
  <pre><code>[HttpPost]
  public ActionResult Admin(List&lt;AdminModel&gt; model)
  {
     string s = model.Command;
  }
  </code></pre>
  
  <p>My View</p>
  
  <pre><code>@using (Html.BeginForm("Admin", "Account"))
  {
    &lt;input type="submit" name="Command" value="Deactivate"/&gt;
    &lt;input type="submit" name="Command" value="Delete"/&gt;
  }
  </code></pre>
  
  <p>When I post back, string "s" is always null.</p>
  
  <p>I also tried the second answer (the one with 146 votes) in this forum post : <a href="https://stackoverflow.com/questions/442704/how-do-you-handle-multiple-submit-buttons-in-asp-net-mvc-framework">How do you handle multiple submit buttons in ASP.NET MVC Framework?</a> and thats also null.  What am I doing wrong?</p>