예제 #1
0
        public async Task <Team> ChangeOwner(string normalizedName, [FromBody] string newOwner)
        {
            var team = await _teamManager.FindTeamByNormalizedNameAsync(normalizedName);

            team = await _teamManager.UpdateTeamOwner(team, newOwner);

            // TODO notify the new owner

            return(team);
        }