示例#1
0
        public async Task CreateAsync(CreateBacklogDto backlogDto)
        {
            var accountId = await _userService.GetAccountIdForCurrentUserAsync();

            var backlog = _backlogAggregate.Create(backlogDto.Title, accountId);

            await _backlogRepository.CreateAsync(backlog);

            await _eventPublisher.PublishDomainEventAsync(new BacklogCreated(backlog.Id));
        }