public async Task <ActionResult <UnitOptionsDto> > GetUnitOptions()
        {
            var userId         = int.Parse(HttpContext.User.Identity.Name);
            var unitOptionsDto = await _armyService.GetUnitOptionsDto(userId);

            return(Ok(unitOptionsDto));
        }
        public async Task <ActionResult <UnitOptionsDto> > GetUnitOptions(int playerId)
        {
            var player = await _playerService.GetPlayerAsync(playerId);

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

            var army = await _armyService.GetArmyAsync(player.Id);

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

            var unitOptionsDto = await _armyService.GetUnitOptionsDto(player.UserId);

            return(Ok(unitOptionsDto));
        }