Tag: asp core mvc

如何获取当前login的用户标识ASP.NET Core

我已经使用User.Identity.GetUserId()使用MVC5做了这个,但是这似乎不工作在这里。 User.Identity没有GetUserId()方法 我正在使用Microsoft.AspNet.Identity