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