<<назад RouteConfig.vb (Contoso University).
1: Imports System
2: Imports System.Collections.Generic
3: Imports System.Linq
4: Imports System.Web
5: Imports System.Web.Mvc
6: Imports System.Web.Routing
7:
8: Public Module RouteConfig
9: Public Sub RegisterRoutes(ByVal routes As RouteCollection)
10: routes.IgnoreRoute("{resource}.axd/{*pathInfo}")
11:
12: routes.MapRoute(
13: name:="Default",
14: url:="{controller}/{action}/{id}",
15: defaults:=New With {.controller = "Home", .action = "Index", .id = UrlParameter.Optional}
16: )
17: End Sub
18: End Module
Comments (
)
Link to this page:
//www.vb-net.com/EF-missing-FAQ/Code/RouteConfig.vb.htm
|