public async Task <ActionResult <ControllerResponse <List <GetRank> > > > getUser() { _logger.LogInformation("In GET user rank"); string userId = _httpContextAccessor.HttpContext.User.FindFirstValue(ClaimTypes.NameIdentifier).ToString(); var ranks = await _rankService.getAllByUserIdAsync(userId); return(Ok(new ControllerResponse <List <GetRank> > { data = ranks.Select(o => _mapper.Map <GetRank>(o)).ToList() })); }