一般都是会改到区域开始.
//routes.MapRoute( // name: "Default", // url: "{controller}/{action}/{id}", // defaults: new { controller = "Home", action = "Index", id = UrlParameter.Optional } //); routes.MapRoute( name: "Default", url: "{controller}/{action}/{id}", defaults: new { controller = "Hours", action = "Create", id = UrlParameter.Optional }, namespaces: new string[] { "Web.Areas.Hours.Controllers" } ).DataTokens.Add("Area", "Hour");