コード例 #1
0
        public async Task <ActionResult <PlayerDto> > GetPlayerAsync(Guid teamId, Guid id)
        {
            var player = await _playersRepository.GetAsync(teamId, id);

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

            var response = _mapper.Map <PlayerDto>(player);

            return(Ok(response));
        }