Base solution for your next web application
Starts in:
01 DAYS
01 HRS
01 MIN
01 SEC
Open Closed

Get user data in Manager (Core) #2778


User avatar
0
fourier created

Hi,

Is it possible to get the current user data from the Core project inside one of my Manager classes that implements functions with the [UnitOfWork] attribute?


1 Answer(s)
  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi,

    You can inject IAbpSession and UserManager into your class and use UserManager's methods to get current user info. Basically,

    _userManager.GetUserOrNull(_abpSession.ToUserIdentifier());