Skip to content

Latest commit

 

History

History
8 lines (4 loc) · 449 Bytes

README.md

File metadata and controls

8 lines (4 loc) · 449 Bytes

Command Query Pattern

An implementation of the command query pattern in .Net MVC.

In addition, this architecture implements the mediator pattern to assist in removing code from controllers, and putting it in the command and query handlers.

Each controller will need to have a QueryDispatcher and a CommandDispatcher. A simple way to do this is to create a base controller, and inject the QueryDispatcher and CommandDispatcher at construction.