title: Mvc area routing?
body: <p>Area folders look like :</p>
  
  <pre><code>Areas 
      Admin
          Controllers
              UserController
              BranchController
              AdminHomeController
  </code></pre>
  
  <p>Project directories look like :</p>
  
  <pre><code>Controller
      UserController
          GetAllUsers
  </code></pre>
  
  <p>area route registration</p>
  
  <pre><code>public override void RegisterArea(AreaRegistrationContext context)
  {
      context.MapRoute(
          "Admin_default",
          "Admin/{controller}/{action}/{id}",
          new { action = "Index", id = UrlParameter.Optional },
          new { controller = "Branch|AdminHome|User" }
      );
  }
  </code></pre>
  
  <p>project route registration</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 = "Home", action = "Index", id = UrlParameter.Optional },
          namespaces: new string[] { "MyApp.Areas.Admin.Controllers" });
  }
  </code></pre>
  
  <p>When I route like this: <code>http://mydomain.com/User/GetAllUsers</code> I get resource not found error (404). I get this error after adding UserController to Area.</p>
  
  <p>How can I fix this error? </p>
  
  <p>Thanks...  </p>