public async Task <IActionResult> AddPlayer([FromBody] Player player) { await teamPlayerRepository.AddPlayer(player); return(CreatedAtAction(nameof(GetPlayer), new { id = player.PlayerID }, player)); }