DEV Community

Cover image for CQRS Pattern In C# And Clean Architecture – A Simplified Beginner’s Guide

CQRS Pattern In C# And Clean Architecture – A Simplified Beginner’s Guide

Dev Leader on February 14, 2024

The post CQRS Pattern in C# and Clean Architecture – A Simplified Beginner’s Guide appeared first on Dev Leader. In this article, we’ll explore th...
Collapse
 
jangelodev profile image
João Angelo

Hi Dev Leader,
Your tips are very useful
Thanks for sharing

Collapse
 
devleader profile image
Dev Leader

Glad that you're enjoying!

Collapse
 
cairocafe profile image
bleskop stevens

I would return the entity Id after saving it instead of bool because if saving is going to raise an exception anyway there is no point in checking for false.

Collapse
 
devleader profile image
Dev Leader

Yup - Fair point. These are just overly trivialized examples but they can certainly be improved upon. Thanks for the comment!