Example #1
0
        public async Task <IActionResult> GetUserProfile()
        {
            var    identity = HttpContext.User.Identity as ClaimsIdentity;
            string userID   = identity.FindFirst(BSConstants.UserId)?.Value;
            int    id       = Int32.Parse(userID);

            var result = await _userDataManager.GetUserById(id);

            return(Ok(result));
        }