title: Url routing with static name mvc
body: <p>I have a controller name <code>Dashboard</code> and inside that controller i have an action <code>AdminDashboard</code> . Now by default url of this action becomes <code>/Dashboard/AdminDashboard</code> . I want to map this action to this url <code>/SupervisorDashboard</code></p>
  
  <p>This is what i am doing but its saying not found </p>
  
  <pre><code>routes.MapRoute(
              name: "SupervisorDashboard",
              url: "SupervisorDashboard",
              defaults: new { controller = "Dashboard", action = "AdminDashboard" }
          );
  </code></pre>
  
  <p>and also how can i redirect to this page using <code>Url.Action</code></p>
  
  <p><strong>Global.asax</strong></p>
  
  <pre><code>public class MvcApplication : System.Web.HttpApplication
  {
      public static void RegisterRoutes(RouteCollection routes)
      {
          routes.IgnoreRoute("{resource}.axd/{*pathInfo}");
  
          routes.MapRoute(
              name: "SupervisorDashboard",
              url: "SupervisorDashboard",
              defaults: new { controller = "Dashboard", action = "AdminDashboard" }
          );
  
      }
  
      protected void Application_Start()
      {
          AreaRegistration.RegisterAllAreas();
          FilterConfig.RegisterGlobalFilters(GlobalFilters.Filters);
          RouteConfig.RegisterRoutes(RouteTable.Routes);
          BundleConfig.RegisterBundles(BundleTable.Bundles);
      }
  }
  </code></pre>