引用另一个项目中的控制器

时间:2019-02-01 14:36:59

标签: c# asp.net-identity

我正在使用Visual Studio中的默认.NET Core身份Web应用程序解决方案。我正在尝试将所有身份逻辑分离到其自己的项目中。我唯一的挂断电话似乎在这里:

namespace WebApp.Identity.Extensions
{
    public static class UrlHelperExtensions
    {
        public static string EmailConfirmationLink(this IUrlHelper urlHelper, int userId, string code, string scheme)
        {
            return urlHelper.Action(
                action: nameof(AccountController.ConfirmEmail),
                controller: "Account",
                values: new { userId, code },
                protocol: scheme);
        }
    }
}

在另一个项目中引用The name 'AccountController' does not exist in the current context时出现错误AccountController。我不确定我缺少什么?

0 个答案:

没有答案