title: MVC Exception: Ambiguous between the following action methods
body: <p>I am getting this error. </p>
  
  <pre class="lang-none prettyprint-override"><code>The current request for action 'Login' on controller type 'AccountController' is ambiguous between the following action methods:  
  System.Web.Mvc.ActionResult Login(MVCApp.Models.Account) on type MVCApp.Controllers.AccountController  
  System.Web.Mvc.ActionResult SignIn(MVCApp.Models.Account) on type MVCApp.Controllers.AccountController
  </code></pre>
  
  <p>Here is my Code</p>
  
  <pre class="lang-html prettyprint-override"><code>&lt;input type="submit" name="Login" value="Login" /&gt;
  &lt;input type="submit" name="SignIn" value="SignIn" /&gt;
  </code></pre>
  
  <pre class="lang-cs prettyprint-override"><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;
      }
  }
  
  public ActionResult Login()
  {
      return View();
  }
  
  [HttpPost]
  [HttpParamAction]
  public ActionResult Login(Account account)
  {
      Account createAccount = new Account();
  
      createAccount.Username = account.Username;
      createAccount.Email = account.Email;
      createAccount.Password = account.Password;
  
      return View("Login");
  }
  
  // GET: /Account/SignUp
  
  public ActionResult SignIn()
  {
      return View();
  }
  
  [HttpPost]
  [HttpParamAction]
  public ActionResult SignIn(Account account)
  {
      Account createAccount = new Account();
  
      createAccount.Username = account.Username;
      createAccount.Email = account.Email;
      createAccount.Password = account.Password;
  
      return View("SignUp");
  }
  </code></pre>