C#C
C#2y ago
Gipper

ASP.NET Identity need help getting to respective logged in user's row in AspNetUsers table

Hello all,
What the title says, I need to know how to get to that row. Here's what I've tried already from the internet:
string aspNetUserId = System.Security.Principal.WindowsIdentity.GetCurrent().GetUserId(); //returns nothing (null)

var userManager = HttpContext.GetOwinContext().GetUserManager<ApplicationUserManager>(); //doesn't know what OwinContext is and idk how to get to it + it doesn't know how to get to ApplicationUserManager and I also don't know where (if it even exists) that class is

Help?
Was this page helpful?