I'm using ASP.NET Core 2.0
and Microsoft.AspNetCore.Identity 2.0.1
In a class, actually in context, I need to retrieve the logged-in user ID.
in the old one, I would:
var userId = User.Identity.GetUserId();
Now in ASP.NET CORE, if I...
asked by
26.01.2018 / 17:19