更新时间:2022-04-05 22:45:21
要完成上述所需的网址,只需指定它在你的管理区域的路由配置是这样的:
To accomplish your desired URL above, just specify it in the route configuration of your "Admin" area like this:
public override void RegisterArea(AreaRegistrationContext context)
{
context.MapRoute(
"Admin_default",
"Admin/Accounts/{controller}/{action}/{id}",
new { action = "Index", id = UrlParameter.Optional }
);
}
没有必要创建组或用户控制器。
No need to create Groups or Users controllers.