public async Task <Team> Create([FromBody] Team team) { var result = await _teamManager.CreateTeamAsync(User, team); if (result.Succeeded) { await _notificationManager.NotifyTeamInvite(result.Team); } else { throw ManagerException <TeamError> .Create(result); } return(result.Team); }