HappYness-Project / Happy-EventSourcing

Event sourcing
10 stars 1 forks source link

Create Result class for the command handler #60

Closed hyunbin7303 closed 2 years ago

hyunbin7303 commented 2 years ago

Best practice for CQRS command handler.

If the command creates a new record, we need to return the proper message (such as 201 status with an identifier) If the error was thrown by the business logic, we need to get a specific HTTP error type.

Todo