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); }
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()); }