7.3.3 Setting the Default Route; Listing 7-10. Adding the Default Route in the RouteConfig.cs File

chap07
Jason Zhu 2021-09-08 11:06:25 +10:00
parent 0fe4d1105b
commit dfe591a0c7
1 changed files with 1 additions and 1 deletions

View File

@ -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 }
);
}
}