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.