Which method is used to add MVC route handlers and specify the use of default routes?

  • AddMvc
  • UseRouting
  • UseEndpoints
  • MapRoute
In ASP.NET Core, the AddMvc method is used to add MVC route handlers and configure the use of default routes. This method sets up MVC services, including routing, and is essential for building web applications with ASP.NET Core MVC. It's typically called within the Startup class's ConfigureServices method.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *