2016-04-06 57 views

回答

1

你應該有這樣的事情在你的RouteConfig文件:

routes.MapRoute(
    name: "Default", 
    url: "{controller}/{action}/{id}", 
    defaults: new { controller = "Your Default Controller Name", action = "Default Action name(usually Index)", id = UrlParameter.Optional } 
); 

你可以有自己的映射,這裏只是提供了一個樣本。

相關問題