Skip to content
This repository has been archived by the owner on Jan 13, 2025. It is now read-only.

Frequently Asked Questions

Eric Fleming edited this page Feb 19, 2020 · 2 revisions

When should I use MVC and when should I use Razor Pages? This repo does both!

This app could be done completely in one way or the other, but as this is a demo app we're trying to show how it's done in each. This way you can see the advantages / disadvantages of each. A few years ago in this project we tried to maintain two separate projects - 1 for just MVC and 1 for just Razor pages. It was difficult to maintain both, so we combined the projects.

Why do some controllers/Pages use MediatR and some do not?

With this being a demo app, we were trying to show a few different ways to approach solutions. For example, the OrderController was updated to use MediatR while the ManageController was not. This way you can see the advantages / disadvantages of each approach while staying in the same repo.

I would definitely recommend for a "real" project that you maintain one approach or the other.

Clone this wiki locally