NET Core Avoiding large Controllers — using CQRS with MediatR.

Having lightweight API controllers or regular view controllers is something good to strive for. Not having many dependencies and logic in the controller betters the application for long-term prospects and eases the process of adding features.

Today, I will show an example of an API controller that uses MediatR to communicate with our backend services.




Software developer | Programming and Blockchain enthusiast

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

Use Stripe Webhook to implement your business logic in an Amplify project (serverless with AWS…

Migrating IBM Cloud Provider to Terraform v0.12

I built a robot that paints my nails 💅🤖

Building a Quick and Cheap Nas with TRUENAS.

My MacOS set up

Unity Development — Loading Scenes

[EN]TryHackMe {Revenge}-Write-up

Best Android Apps For Privacy

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Ibrahim Jaber

Ibrahim Jaber

Software developer | Programming and Blockchain enthusiast

More from Medium

Wpf.Extensions.Hosting for running WPF on Generic Hosts has been released.

[Dot Net Core](Graphic series )6. MiddleWare –How to work in .NET Core

Create a web API using minimal API ASP.NET Core

Release the limits of Github Actions with self-hosted runners