MVC 4 - Handle 2 Submit buttons in one form


When you want to handle multiple submit buttons in ASP.NET MVC framework. For example
@using (Html.BeginForm("Login", "Member"))
  <input name="Command" type="submit" value="Login" />
  <input name="Command" type="submit" value="Cancel" />


They are different ways. But the simplest is you need to take the value from their server side by the name of the button.
public ActionResult Admin(List model,string Command) 
    string s = Command;