Beispiel #1
0
        [Route("AddTeam")]                                             //works
        public async Task <ActionResult> AddTeam([FromBody] Team team) //works
        {
            await league.AddTeam(team);

            return(CreatedAtAction(nameof(GetTeams), new { id = team.Id }, team));
        }