BExIS.Web.Shell.MvcApplication.RegisterRoutes C# (CSharp) Method

RegisterRoutes() public static method

public static RegisterRoutes ( RouteCollection routes ) : void
routes RouteCollection
return void
        public static void RegisterRoutes(RouteCollection routes)
        {
            routes.IgnoreRoute("{resource}.axd/{*pathInfo}");

            //routes.MapRoute(
            //    "DDM", //Landing page
            //    "",
            //    new { area = "DDM", controller = "Home", action = "Index" }
            //    , new[] { "BExIS.Web.Shell.Areas.DDM.Controllers" }
            //).DataTokens["UseNamespaceFallback"] = false;

            //routes.MapRoute(
            //   "Home",
            //   "Home",
            //   new { controller = "Home", action = "Index" }
            //   , new[] { "BExIS.Web.Shell.Controllers" }
            //);

            routes.MapRoute(
               "Default", // Route name
               "{controller}/{action}/{id}", // URL with parameters
               new { controller = "Home", action = "Index", id = UrlParameter.Optional } // Parameter defaults
               , new[] { "BExIS.Web.Shell.Controllers" } // to prevent conflict between root controllers and area controllers that have same names
               );

              //  routes.MapRoute(
              //    "RPM",
              //    "RPM/{controller}/{action}/{id}",
              //    new { controller = "Home", action = "Index" }
              //    , new[] { "BExIS.Web.Shell.Areas.RPM.Controllers" }
            //).DataTokens = new RouteValueDictionary(new { area = "RPM" });
        }