Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Public Module RouteConfig
- Public Sub RegisterRoutes(ByVal routes As RouteCollection)
- routes.IgnoreRoute("{resource}.axd/{*pathInfo}")
- routes.MapRoute(
- "Machines",
- "machines/{Id}/{*Path}",
- New With {.controller = "Machines", .action = "Index", .Id = UrlParameter.Optional}
- )
- routes.MapRoute(
- name:="Home",
- url:="{Id}/{*Path}",
- defaults:=New With {.controller = "Home", .action = "Index", .Id = UrlParameter.Optional}
- )
- End Sub
- End Module
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement