Exemplo n.º 1
0
        public async Task CreateTeamAsync(
            CreateTeamCommand createTeamCommand,
            CancellationToken cancellationToken)
        {
            var squad = await _teamDomainService.CreateTeamAsync(createTeamCommand.Name,
                                                                 createTeamCommand.TeamOwnerId,
                                                                 createTeamCommand.SquadId,
                                                                 createTeamCommand.Description,
                                                                 cancellationToken);

            _squadRepository.Update(squad);
            await _squadRepository.SaveAsync(cancellationToken);
        }