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?
5 Replies
Unknown User•3y ago
Message Not Public
Sign In & Join Server To View
Yep, a MediatR request is basically a DTO itself
@Duke @reacher 🫠: : : : : : : @tebeco Thank you. Will replace manual DTOs with them now
oof pinged i guess, sorry
Unknown User•3y ago
Message Not Public
Sign In & Join Server To View
✅ This post has been marked as answered!