示例#1
0
        public async Task <List <PlayerPosition> > GetAllPlayerPositions(int id)
        {
            List <PlayerPositionDto> ppDtos = await _formationRepository.GetAllPlayerPositions(id);

            List <PlayerPosition> playerPositions = new List <PlayerPosition>();

            foreach (var ppDto in ppDtos)
            {
                playerPositions.Add(ppDto.ToEntity());
            }
            return(playerPositions);
        }