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

Infrastructure Lays the Foundation for Developer Artistry with Tony Minessale, Founder and CEO of…

Yellow.ai Hiring Freshers-2021/22 For Software Engineer Position: Apply Now

Get Going With Git — Part 2

SQL by steps #6 : WHERE (multi conditions)

BeautifulSoup Work Arounds

Server Side Custom Search in Datatables

Why is Java Application Development Is Most choosable?

Hello Everyone..!

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

This is a blog post for my video https://www.youtube.com/watch?v=XEHR-AVou4U

Test Driven Development For .Net Core

Microsoft .NET challenge France 2020 final

Multiple Request/Response examples for Swagger UI in ASP.NET core