示例#1
0
        public Token GetTokenByUserId(int userId)
        {
            var token = _tokenDataService.GetTokenByUserId(userId);

            if (token == null)
            {
                throw new TokenNotFoundException("$Token not found with userId:{userId}");
            }

            return(token);
        }