diff --git a/SportsStore/SportsStore.WebUI/App_Start/RouteConfig.cs b/SportsStore/SportsStore.WebUI/App_Start/RouteConfig.cs index 1ec3c24..2122a42 100644 --- a/SportsStore/SportsStore.WebUI/App_Start/RouteConfig.cs +++ b/SportsStore/SportsStore.WebUI/App_Start/RouteConfig.cs @@ -4,6 +4,7 @@ using System.Linq; using System.Web; using System.Web.Mvc; using System.Web.Routing; +using System.Web.UI; namespace SportsStore.WebUI { @@ -13,6 +14,12 @@ namespace SportsStore.WebUI { routes.IgnoreRoute("{resource}.axd/{*pathInfo}"); + routes.MapRoute( + name: null, + url: "Page{page}", + defaults: new { Controller = "Product", action = "List"} + ); + routes.MapRoute( name: "Default", url: "{controller}/{action}/{id}",