title: Routing GET and POST routes in ASP.NET MVC 4
body: <p>I am trying to setup a Login form in an ASP.NET MVC 4 app. Currently, I have configured my view as shown here:</p>
  
  <p><strong>RouteConfig.cs</strong></p>
  
  <pre><code>routes.MapRoute(
    "DesktopLogin",
    "{controller}/account/login",
    new { controller = "My", action = "Login" }
  );
  </code></pre>
  
  <p><strong>MyController.cs</strong></p>
  
  <pre><code>public ActionResult Login()
  {
    return View("~/Views/Account/Login.cshtml");
  }
  
  [AllowAnonymous]
  [ValidateAntiForgeryToken]
  public ActionResult Login(LoginModel model)
  {
    return View("~/Views/Account/Login.cshtml");
  }
  </code></pre>
  
  <p>When I attempt to visit /account/login in the browser, I receive an error that says:</p>
  
  <pre><code>The current request for action 'Login' on controller type 'MyController' is ambiguous between the following action methods:
  System.Web.Mvc.ActionResult Login() on type MyApp.Web.Controllers.MyController
  System.Web.Mvc.ActionResult Login(MyApp.Web.Models.LoginModel) on type MyApp.Web.Controllers.MyController
  </code></pre>
  
  <p>How do I setup a basic form in ASP.NET MVC 4? I've looked at the sample Internet App template in ASP.NET MVC 4. However, I can't seem to figure out how the routing is wired up. Thank you so much for your help.</p>