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?
Unknown User566d ago
reacher566d ago
Yep, a MediatR request is basically a DTO itself
bookuha566d ago
@Duke @reacher 🫠 : : : : : : : @tebeco Thank you. Will replace manual DTOs with them now oof pinged i guess, sorry
Unknown User565d ago
Accord565d ago
✅ This post has been marked as answered!
Want results from more Discord servers?
Add your server
More Posts
How can I send int value from 1 program, to another via internet?```fix Hello. Is there any easy way to connect 2 programs to each other over the internet? I mean,InterfaceHi, i've this interface but there is only 1 class which doesn't need any parameter in `getAll(long iTroubleshooting Visual studio .net 6, debuggerHi, Ran in to a so strange bug/problem this week. I'm working in a multi tier solution with several✅ Amazon Review Panic!!!Hello, I am a Freshman in college who was recently selected for a technical interview at Amazon. I aSearch for text and sort by most hits.I wrote a function like this, it looks for words in the database. I would like to make it sort by thValidation helpNeed help with some simple validationPrevent scrollbar from jumping down when viewing a list?Hi - I'm making a chat room in windows forms and have a listbox that displays all the messages recieWPF Border around transparent imageI'm trying to do a kind of "magic wand tool" selection that some image editors have, and I just can'Stack and Heap Memory [Answered]I've been correcting some of my misconception about stack and heap memory allocation. So, this is myPartialType from Nest.js in CsharpIs there is a possibility to recreate a behaviour like the partialType from Nestjs (=> https://docs.Trying to add GrossWeight each time it shows up in the listTrying to learn how to use a ForEach loop while doing my homework. I feel like this should be easierHow to read DateTime from SQLite database using System.Data.SQLite?I have a sqlite database with a DateTime entry. Since SQLite doesn't have a DateTime data type, it sBlazor VSCode --unable to find an installation of the browser on your system.-- [Answered]I'm getting an error `Unable to launch browser: "Unable to find an installation of the browser on yoCollection of different classesI have a situation where I need to store two different types together, and I'm not sure what's a gooNuGet behind a proxyHey I am in the process of releasing a .NET project as a Docker container. How can I configure NugetFluentAPI, Joining Table of the same entitiesI have entities User: id, payments; Payments: id, user1, user2 I want user to have n payments, and EF sets a property out of nowhere [Solved] [Answered]```cs public int RepliesLength { get; set; } = 0; public int RepliesCount { get; set; } = 0; publicJenkins unable to build CSharp project [Answered]any ideas why that might be?✅ Embedding an application WinUI 3This may be a stupid question, but is it possible to have the UI of a different program be a compone.Net 6 on IIS (Port conflict)Hey! I have an application that I would like to run on port 8081, and it does use port 8081 in start