【发布时间】:2018-12-30 21:43:32
【问题描述】:
在我的旧 MVC 应用程序中,我有一些扩展方法,如下所示
public static string ChangePasswordCallbackLink(this IUrlHelper urlHelper, string appUserId, string parameter)
{
return urlHelper.Action(
action: nameof(AccountController.ChangePassword),
controller: "Account",
values: new { appUserId, parameter}
);
}
当您在默认的 Asp.Net Core 2.2 Web 应用程序中搭建身份页面时,由于不再有帐户控制器(我在 Core 中仍然不明白),因此如何创建这种类型的扩展?
【问题讨论】:
标签: c# asp.net-core-2.0