Beispiel #1
0
        internal int GetId()
        {
            var id = ClaimManager.GetUserId(_context.HttpContext.User);

            if (string.IsNullOrWhiteSpace(id))
            {
                return(0);
            }
            return(int.Parse(id));
        }
Beispiel #2
0
 internal string GetFullName()
 {
     return(ClaimManager.GetUserFullName(_context.HttpContext.User));
 }
Beispiel #3
0
 internal string GetToken()
 {
     return(ClaimManager.GetUserToken(_context.HttpContext.User));
 }