C
C#•3y ago
bookuha

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