Mid ASP.NET Core

Difference between conventional routing and attribute routing?

  • Conventional routing: Routes defined centrally (usually in Startup), patterns

applied globally.

  • Attribute routing: Routes declared directly on controllers/actions via attributes

([Route], [HttpGet]).

  • Attribute routing is more flexible and explicit.

More from ASP.NET Core Tutorial

All questions for this course