From e43a96b58a4c13928dab15b1b61fe9b245ad39c8 Mon Sep 17 00:00:00 2001 From: Jason Zhu Date: Fri, 20 Aug 2021 22:40:30 +1000 Subject: [PATCH] 7.3.3 Setting the Default Route; e.g. 7.9 Adding the Default Route --- SportsStore/SportsStore.WebUI/App_Start/RouteConfig.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SportsStore/SportsStore.WebUI/App_Start/RouteConfig.cs b/SportsStore/SportsStore.WebUI/App_Start/RouteConfig.cs index 2f301d8..1ec3c24 100644 --- a/SportsStore/SportsStore.WebUI/App_Start/RouteConfig.cs +++ b/SportsStore/SportsStore.WebUI/App_Start/RouteConfig.cs @@ -16,7 +16,7 @@ namespace SportsStore.WebUI routes.MapRoute( name: "Default", url: "{controller}/{action}/{id}", - defaults: new { controller = "Home", action = "Index", id = UrlParameter.Optional } + defaults: new { controller = "Product", action = "List", id = UrlParameter.Optional } ); } }