In attribute routing, the [Route("products/{id}", Order = 2)] attribute will prioritize this route ______ other routes with no order specified.

  • over
  • above
  • before
  • instead of
In attribute routing, when specifying the 'Order' property, a lower value indicates a higher priority. So, the route with 'Order = 2' will prioritize this route above other routes with no order specified. This allows you to control the order in which routes are matched and executed.
Add your answer
Loading...

Leave a comment

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