diff --git a/UrlsAndRoutes/UrlsAndRoutes/App_Start/RouteConfig.cs b/UrlsAndRoutes/UrlsAndRoutes/App_Start/RouteConfig.cs index 92f9d1e..052fdfe 100644 --- a/UrlsAndRoutes/UrlsAndRoutes/App_Start/RouteConfig.cs +++ b/UrlsAndRoutes/UrlsAndRoutes/App_Start/RouteConfig.cs @@ -11,7 +11,8 @@ namespace UrlsAndRoutes { public static void RegisterRoutes(RouteCollection routes) { - routes.MapRoute("MyRoute", "{controller}/{action}"); + routes.MapRoute("MyRoute", "{controller}/{action}", + new { action = "Index"}); } } }