Fat Controller CQRS Diet: Simple Command
This post is in my Fat Controller CQRS Diet series demonstrate how to thin your controllers by implementing commands and queries using the MediatR library. For demonstration, I’m converting the MusicStore application that’s using ASP.NET Core MVC. If you’re new to this series, here are earlier posts in this series: Overview of Series Simple Query Simple Command https://www.youtube.com/watch?v=2d-jTjmbkVUVideo can’t be loaded because JavaScript is disabled: Fat Controller CQRS Diet | Part 2 Simple Command (https://www.youtube.com/watch?v=2d-jTjmbkVU) A command is request to change the state of our domain. The first controller action we are going to rewrite is ShoppingCartController.AddToCart Here is what the method… Read More »Fat Controller CQRS Diet: Simple Command