You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I just saw, that the POST to create a new issue does not return the generated Issue. I understand that from a CQRS perspective this is ok-ish, but from a Frontend Developers perspective it does not make sense to create a new issue and then not getting the created resources. So I wanted to change it like that:
var issueId = await commandBus.SendAsync(command);
return Ok(await queryBus.SendAsync<GetIssue, IssueView>(new GetIssue(issueId)));
I just saw, that the POST to create a new issue does not return the generated Issue. I understand that from a CQRS perspective this is ok-ish, but from a Frontend Developers perspective it does not make sense to create a new issue and then not getting the created resources. So I wanted to change it like that:
or maybe like this
I read some articles explaining that the second concept might be ok, what do you think?
The text was updated successfully, but these errors were encountered: