示例#1
0
        public async Task <IActionResult> AddPlayer([FromBody] Player player)
        {
            await teamPlayerRepository.AddPlayer(player);

            return(CreatedAtAction(nameof(GetPlayer), new { id = player.PlayerID }, player));
        }