我需要帮助来创建具有相同名称的多个视图和控制器。
为了解决控制器的问题,我做到了:
routes.MapRoute(
name: "Leads",
url: "Leads/{controller}/{action}/{id}",
defaults: new { controller = "Home", action = "Index", id = UrlParameter.Optional },
namespaces: new string[] { "Project.Controllers.Leads" });
// Default route.
routes.MapRoute(
name: "Default",
url: "{controller}/{action}/{id}",
defaults: new { controller = "Home", action = "Index", id = UrlParameter.Optional },
namespaces: new string[] { "Project.Controllers" });
但我需要帮助来创建具有相同名称的多个视图。
感谢。