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)); }