Asp.Net Boilerplate,, How to Get current Login User?

MMG picture MMG · Sep 8, 2017 · Viewed 7k times · Source

I want to get the user data which is currently logged in,, ?? I have to send current user ID to a table in database How to do this??

Answer

Abdus Salam Azad picture Abdus Salam Azad · Oct 19, 2017

You can use AbpSession to get user. For that you have to inject IAbpSession.You can use the following code:

 AbpSession.UserId