Saved Bookmarks
| 1. |
What is routing, and how can you define routes in ASP.NET Core? |
|
Answer» Routing is the process of mapping an incoming HTTP REQUEST to a specific method in the application code. A router maps the incoming requests to the route handler. It takes in a URL as an input and deconstructs it to determine the controller and ACTION method to route the request. A simple routing pattern, for example, might determine that the /posts/show URL maps to the Show action method on the PostsController.
We can use both Conventional Routing and Attribute Routing in an application. |
|