MediatR commands and DTOs [Answered]
Currently, I am passing DTOs to my controllers,
I am using MediatR and it supports commands.
I use these commands just to pass these DTOs into them, like some kind of envelope (what they essentially are, I guess)
Can I use commands instead of DTOs directly?
What are the pros and cons?
I am using MediatR and it supports commands.
I use these commands just to pass these DTOs into them, like some kind of envelope (what they essentially are, I guess)
Can I use commands instead of DTOs directly?
What are the pros and cons?