Exemplo n.º 1
0
        public async Task HandleAsync(AssignLabelsToBug command)
        {
            var Bug = await bugRepository.GetAsync(command.IssueId);

            var labels = await labelsSearcher.GetLabels(Bug.ProjectId, command.LabelsIds);

            Bug.AssignLabels(command.LabelsIds, labels);
            await bugRepository.Update(Bug, Bug.Version);
        }