Exemplo n.º 1
0
        public async Task HandleAsync(CommentNfr command)
        {
            var issue = await nfrRepository.GetAsync(command.IssueId);

            var version = issue.Version;
            await issue.Comment(callContext.UserId, command.Content, authorizationService);

            await nfrRepository.Update(issue, version);
        }
Exemplo n.º 2
0
        public async Task <IActionResult> Comment([FromRoute] Guid projectId, [FromRoute] Guid nfrId, [FromBody] CommentNfr command)
        {
            command.ProjectId = projectId;
            command.IssueId   = nfrId;
            await commandQueryBus.SendAsync(command);

            return(Ok());
        }