示例#1
0
        public async Task HandleAsync(MarkNfrsBugAsInProgress command)
        {
            var nfr = await nfrRepository.GetAsync(command.NfrId);

            var originalVersion = nfr.Version;
            await nfr.MarkBugAsInProgress(command.IssueId, callContext.UserId, authorizationService);

            var bug = nfr.Bugs.Single(x => x.Id == command.IssueId);
            await nfrRepository.UpdateChildEntity(nfr, originalVersion, bug);
        }
示例#2
0
        public async Task <IActionResult> MarkBugAsInProgress([FromRoute] Guid projectId, [FromRoute] Guid nfrId, [FromRoute] Guid bugId, [FromBody] MarkNfrsBugAsInProgress command)
        {
            command.ProjectId = projectId;
            command.NfrId     = nfrId;
            command.IssueId   = bugId;
            await commandQueryBus.SendAsync(command);

            return(Ok());
        }