ui-mvc

Primary docs: - https://learn.microsoft.com/aspnet/core/mvc/overview - https://learn.microsoft.com/aspnet/core/mvc/controllers/ - https://learn.microsoft.com/aspnet/core/mvc/views/

MVC

Primary docs:

Choose MVC When Actions And Views Matter

Prefer MVC when the application benefits from explicit controllers, action-based routing, filters, view models, and a strong separation between orchestration and presentation.

This is often the right fit for:

Core Shape

Enable MVC with views using:

Keep views focused on presentation. Keep controllers focused on HTTP orchestration. Put business rules in services.

Controller Guidance

View Guidance

Structure And Scale

Choosing MVC Over Razor Pages

Prefer MVC over Razor Pages when: