All Tasks
Buildintermediate
55 min

Refactor to CQRS with MediatR

You have a fat `ProductsController` where every method calls the DB directly. Refactor it to CQRS: every read becomes a Query, every write becomes a Command. All handlers go through MediatR. Add a validation pipeline behaviour that runs FluentValidation before any command handler.

Your progress0%

Requirements

Skills you'll use

.NETCQRSMediatRFluentValidation

Read this first

This task is based on the lesson below. Complete the reading before attempting it.

Go to lesson

What to expect

Difficulty
intermediate
Time
55 min
Steps
6
Type
Build