title: Using Route Attributes In MVC5
body: <p>First of all, I read <a href="https://stackoverflow.com/questions/30310/asp-net-mvc-how-do-i-enable-dashes-in-my-urls">this question</a> and <a href="https://stackoverflow.com/questions/29804701/using-route-attributes-in-asp-net-mvc-5-with-areas">this question</a> 
  I think I have another problem. Because everything is the same.</p>
  
  <p>I have MVC5 project. I have 2 areas.
  First, my default root class like this.</p>
  
  <pre><code>public static void RegisterRoutes(RouteCollection routes)
  {
        routes.IgnoreRoute("{resource}.axd/{*pathInfo}"); 
        routes.MapRoute(
        name: "Default",
        url: "{controller}/{action}/{id}",
      defaults: new { controller = "Welcome", action = "Index", id = UrlParameter.Optional});
  }
  </code></pre>
  
  <p><strong>first area route config.</strong></p>
  
  <pre><code>public override void RegisterArea(AreaRegistrationContext context) 
  {
      context.MapRoute(
          "App_default",
          "App/{controller}/{action}/{id}",
          new { action = "Index", id = UrlParameter.Optional }
      );
  }
  </code></pre>
  
  <p>At this point, there is no problem. But I want like this: </p>
  
  <p>This App/Controller</p>
  
  <pre><code>public class AccountsController : Controller
  {
      // GET: App/Accounts
      [Route("app/accounts/list/{Id}")]
      public ActionResult List()
      {
          return View();
      }
  }
  </code></pre>
  
  <p>Now, I can access like : </p>
  
  <ul>
  <li>localhost/Index/Index <em>OK</em></li>
  <li>localhost/App/Index/Index <em>OK</em> </li>
  <li>localhost/app/accounts/list/45646 <em>ERROR</em></li>
  </ul>
  
  <p>How can I route attribute using Areas? I cannot do it?</p>