I have created a angular 2 application using .NET Core and MVC. I want to know the login id of user. How to get logged in id of a user in .net core?
This is my first
Assuming you are using ASP.NET Identity, what about (in your controller action):
User.Identity.GetUserId();
or (if you use a custom key type)