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.
Add your answer
Loading...

Leave a comment

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