1
과수원 모듈에 새 페이지를 작성하려면 어떻게합니까? 과수원에 한 페이지와 컨트롤러가 있지만 루트 모듈에 새 페이지를 추가하는 방법은 무엇입니까?과수원 모듈에 새 페이지 작성
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())
}
};
}