如何在果园模块中创建新页面?我在果园有一个页面和控制器,但是如何在路由模块中添加一个新页面?
public IEnumerable<RouteDescriptor> GetRoutes() {
return new[] {
new RouteDescriptor {
Priority = 5,
Route = new Route(
"BlogX", // this is the name of the page url
new RouteValueDictionary {
{"area", "BlogX"}, // this is the name of your module
{"controller", "Home"},
{"action", "Index"}
},
new RouteValueDictionary(),
new RouteValueDictionary {
{"area", "BlogX"} // this is the name of your module
},
new MvcRouteHandler())
}
};
}