API

AddControllersWithViews

Registers MVC controller and view services.

Formal Syntax & Structure

csharp syntaxcsharp
builder.Services.AddControllersWithViews();

Working Example

Example Snippetcsharp
// Documentary fragment; see linked lesson for context.builder.Services.AddControllersWithViews();
C# & .NET Reference