public async Task <ActionResult <BattlesDto> > GetBattles()
        {
            var userId     = int.Parse(HttpContext.User.Identity.Name);
            var battlesDto = await _armyService.GetBattlesDto(userId);

            return(Ok(battlesDto));
        }
        public async Task <ActionResult <BattlesDto> > GetBattles(int playerId)
        {
            var player = await _playerService.GetPlayerAsync(playerId);

            if (player == null)
            {
                return(NotFound());
            }

            var battlesDto = await _armyService.GetBattlesDto(player.UserId);

            return(Ok(battlesDto));
        }