public IActionResult GetProfile(int userId) { var userInfo = _userResolverService.GetUserById(userId); if (userInfo != null) { return(Ok(userInfo)); } return(NotFound()); }