-1
我想在My MVC应用程序中实现路由。MVC的路由问题
routes.MapRoute("View",
"View/ViewCustomer/{id}",
new { controller = "Customer", action = "DisplayCustomer",
id = UrlParameter.Optional });
上面的代码不会重定向到CustomerDetail控制器。
我想用上面的url来调用它。 http://localhost/View/ViewCustomer/
您的路由适用于名为'CustomerController'的控制器,而不是'CustomerDetailController' –