public static RegisterRoutes ( RouteCollection routes ) : void | ||
routes | RouteCollection | |
Résultat | void |
public static void RegisterRoutes(RouteCollection routes)
{
routes.MapRoute(
name: "NotFound",
url: "NotFound/{action}/{id}",
defaults: new
{
controller = "Error",
action = "NotFound",
id = UrlParameter.Optional
});
}