Vote count:
0
Hey All I Added two custom routes
routes.MapRoute(
"ParentCat",
"{PCat}/{id}",
new { Controller = "Adds", Action = "DetailWanted", PCat = UrlParameter.Optional, id = UrlParameter.Optional });
routes.MapRoute(
"SubCat",
"{PCat}/{SCat}/{id}",
new { Controller = "Adds", Action = "DetailWanted", PCat = UrlParameter.Optional, SCat = UrlParameter.Optional, id = UrlParameter.Optional });
for the urls
localhost:2110/Category/addid
&
localhost:2110/Category/SubCategory/addid
but debugger stucks in the custom route's DetailWanted action and even on init my default route
routes.MapRoute(
name: "Default",
url: "{controller}/{action}/{id}",
defaults: new { controller = "Home", action = "Index", id = UrlParameter.Optional }
);
is not called
asked 52 secs ago
Aucun commentaire:
Enregistrer un commentaire