public async Task <ActionResult <TeamDto> > CreatePlayerAsync(Guid teamId, [FromBody] PlayerDto request)
        {
            try
            {
                var player = _mapper.Map <Player>(request);
                player.TeamId = teamId;
                var createdId = await _playersRepository.AddAsync(player);

                return(CreatedAtRoute(nameof(GetPlayerAsync), new { teamId, id = createdId }, createdId));
            }
            catch (TeamNotExistsException)
            {
                return(NotFound());
            }
        }