The [______] attribute in ASP.NET Core is used to specify the route template for an action method.
- Route
- HttpPost
- Authorize
- ValidateAntiForgeryToken
In ASP.NET Core, the [Route] attribute is used to define the route template for an action method. This template determines how the URL should be structured to access the method. For example, [Route("api/products")] specifies that the method should be reachable at the URL "api/products."
Loading...
Related Quiz
- The project.json file was prevalent in ASP.NET Core versions prior to _________.
- Which of the following tools is an Integrated Development Environment (IDE) specifically tailored for .NET development?
- You are setting up a new development environment for a team that will be working on an ASP.NET Core application. While some team members use Windows, others use macOS. Which development tools would be most suitable to ensure uniformity across the team?
- How does the ASP.NET Core Identity system handle migrations in a distributed deployment scenario where multiple instances might attempt to apply migrations simultaneously?
- To override the default routing conventions in MVC, you can use the _________ attribute on your action methods.