title: Combine Similar ASP.NET MVC Routes
body: <p>I have two very similar ASP.NET MVC routes, provided below.</p>
  
  <p>Is there anyway to combine the two routes and place a conditional statement so that (1) any requests to "logs/email/" goes to the EmailLogsController, and requests to "logs/user/" goes to the UserLogsController?</p>
  
  <pre><code>// URL: /areax/logs/email/
  // URL: /areax/logs/email/details/51
  // URL: /areax/logs/email/details/117
  context.MapRouteLowercase(
      "AreaX.Log.Email",
      "areax/logs/email/{action}/{id}",
      new
      {
          controller = "EmailLogs",
          action = "Index",
          id = UrlParameter.Optional
      },
      new[] { ControllerNamespaces.AreaX }
  );
  
  // URL: /areax/logs/user/
  // URL: /areax/logs/user/details/1
  // URL: /areax/logs/user/details/10
  context.MapRouteLowercase(
      "AreaX.Log.User",
      "areax/logs/user/{action}/{id}",
      new
      {
          controller = "UserLogs",
          action = "Index",
          id = UrlParameter.Optional
      },
      new[] { ControllerNamespaces.AreaX }
  );
  </code></pre>
  
  <p>As it stands they don't look very DRY.</p>