title: MVC3 ActionName attribute, its behaviour and effects
body: <p>While reading about mcv3 I came across an attribute name called <code>[ActionName]</code>. It actually gives a new name to the action method. I tested a scenario which made me think; how are the internals working. When I have the following two action methods in my controller class</p>
  
  <pre><code>[ActionName("Test")]
  public ActionResult Index()
  {
        return View();
  }
  [ActionName("Index")]
  public ActionResult Test()
  {
        return View();
  }
  </code></pre>
  
  <p>I thought this will end up in some kind of infinite loop or will give some ambiguity exception. But the same works fine and the second method is called when i give this url <code>http://mysite:1234/mycontroller</code></p>
  
  <p>What made MVC engine to choose the second method and not the first?</p>
  
  <p>Any idea why this happens?</p>