title: multiple submit form in html beginform mvc
body: <p>Trying to make multiple submit form, but having error <code>The current request for action 'EditAccount' on controller type 'AccountController is ambiguous between the following action methods</code>. How can i fix this? Here's code</p>
  
  <p>Attribute: </p>
  
  <pre><code>public class HttpParamActionAttribute : ActionNameSelectorAttribute
  {
      public override bool IsValidName(ControllerContext controllerContext, string actionName, MethodInfo methodInfo)
      {
          if (actionName.Equals(methodInfo.Name, StringComparison.InvariantCultureIgnoreCase))
              return true;
  
          var request = controllerContext.RequestContext.HttpContext.Request;
          return request[methodInfo.Name] != null;
      }
  }
  </code></pre>
  
  <p>Methods from controller: </p>
  
  <pre><code>[HttpPost]
  [HttpParamAction]
  public virtual async Task&lt;ActionResult&gt; AddNew(AccountModel model)
  { ... }
  
  
  [HttpPost]
  [HttpParamAction]
  public virtual async Task&lt;ActionResult&gt; EditAccount(AccountModel model)
  { ... }
  </code></pre>
  
  <p>And view</p>
  
  <pre><code>@using (Html.BeginForm(new {@class = "form-horizontal"}))
  {
  
       &lt;button type="submit" class="btn btn-w-m btn-primary" name="EditAccount"&gt;Save&lt;/button&gt;
  
       &lt;button type="submit" class="btn btn-w-m btn-primary" name="AddNew" &gt;&lt;i class="fa fa-plus"&gt;&lt;/i&gt;&amp;nbsp;Add New&lt;/button&gt;
  
  }
  </code></pre>