Mid ASP.NET Core

How routing works in MVC / Razor Pages ● MVC Routing: ○ Uses attribute routing or conventional routing. Example: endpoints.MapControllerRoute( name: "default", pattern: "{controller=Home}/{action=Index}/{id?

}");

  • Razor Pages Routing:
  • Based on folder structure.
  • URL /Products/Edit maps to

/Pages/Products/Edit.cshtml.

More from ASP.NET Core Tutorial

All questions for this course