public async Task <ActionResult <TeamPlayer> > AddPlayerToTeam(Guid teamId, AddPlayerToTeamDTO addPlayerDTO) { if (teamId != context.TeamId) { return(StatusCode(403)); } var newPlayer = await teamService.AddPlayerToTeamAsync(addPlayerDTO, teamId); return(Ok(newPlayer)); }