i have a question, how should i validate data input by a command? I thought about using a DTO, and after validating it, mapping it to the command. But I think this is the wrong approach. What would be the correct way?
1
I would recomennd MediatR
and FluentValidation
combination for that.
Take a look at this article