7.3.3 Setting the Default Route; Listing 7-10. Adding the Default Route in the RouteConfig.cs File
parent
0fe4d1105b
commit
dfe591a0c7
|
@ -16,7 +16,7 @@ namespace SportsStore.WebUI
|
||||||
routes.MapRoute(
|
routes.MapRoute(
|
||||||
name: "Default",
|
name: "Default",
|
||||||
url: "{controller}/{action}/{id}",
|
url: "{controller}/{action}/{id}",
|
||||||
defaults: new { controller = "Home", action = "Index", id = UrlParameter.Optional }
|
defaults: new { controller = "Product", action = "List", id = UrlParameter.Optional }
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue