Sign In| Join
Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
Contributor
3230 Points
668 Posts
May 03, 2012 06:40 AM|LINK
change the highlighted line in your code for the second option in RegisterRoutes
routes.MapRoute(
"Cuisine",
"Cuisine/{name}",
new { controller = "Cuisine", action = "Search" ,name=UrlParameter.Optional }
);
tusharrs
Contributor
3230 Points
668 Posts
Re: Simple routing problem
May 03, 2012 06:40 AM|LINK
change the highlighted line in your code for the second option in RegisterRoutes
routes.MapRoute(
"Cuisine",
"Cuisine/{name}",
new { controller = "Cuisine", action = "Search" ,name=UrlParameter.Optional }
);
( Mark as Answer if it helps you out )
View my Blog