The [Route("{action=Index}")] attribute specifies a default value for the action, which in this case is ______.
- "Default"
- "Action"
- "Index"
- "Value"
In this attribute route, the [Route("{action=Index}")] attribute specifies that if the 'action' parameter is not provided in the URL, it defaults to "Index." This is a useful way to set default actions for controller methods when no specific action is mentioned in the route.
Loading...
Related Quiz
- When you're creating a project for microservices, the ________ template in ASP.NET Core might be a suitable choice.
- When working with ASP.NET Core Identity, user-related data like passwords and email addresses are stored in the _________.
- What is the primary purpose of using attribute routing in ASP.NET Core?
- Which ASP.NET Core method is used to return a Razor view from a controller action?
- In ASP.NET Core Razor views, what's the role of the AntiForgeryToken?