public static
void RegisterRoutes(RouteCollection routes)
{
routes.MapRoute(
{
routes.MapRoute(
"Default", //
Route name
"{controller}/{action}/{id}", //
URL with parameters
new {
controller = "Home",
action = "Index",
id = UrlParameter.Optional } //
Parameter defaults
);
}
}
No comments:
Post a Comment