I am trying to use the VS2015 MVC controller and in particular GetUserID for User.Identity
I saw a number of similar questions related to this that claim to add a link to Microsoft.AspNet.Identity, however, as you can see, it is referenced.
I assume that I am missing a package or something that I just cannot understand.
using Microsoft.AspNet.Identity; using Microsoft.AspNet.Mvc; using Web_Test.Models; namespace Web_Test.Controllers { public class TestController : Controller { public TestController(UserManager<ApplicationUser> userManager, SignInManager<ApplicationUser> signInManager) { UserManager = userManager; SignInManager = signInManager; } public UserManager<ApplicationUser> UserManager { get; private set; } public SignInManager<ApplicationUser> SignInManager { get; private set; } public IActionResult Index() {
source share