Пример #1
0
        public async Task HandleAsync(MarkNfrAsInProgress command)
        {
            var issue = await nfrRepository.GetAsync(command.IssueId);

            var originalVersion = issue.Version;
            await issue.MarkAsInProgress(callContext.UserId, authorizationService);

            await nfrRepository.Update(issue, originalVersion);
        }
Пример #2
0
        public async Task <IActionResult> MarkAsInProgress([FromRoute] Guid projectId, [FromRoute] Guid nfrId, [FromBody] MarkNfrAsInProgress command)
        {
            command.ProjectId = projectId;
            command.IssueId   = nfrId;
            await commandQueryBus.SendAsync(command);

            return(Ok());
        }