C # interfaces are great for my controller management methods to take the same number, data type, and parameter order. Unfortunately, this does not help to match the URLs generated by the routing mechanism. How can I guarantee that the parameter names are the same?
For instance:
How to ensure that
sportswear/products
and
carsandtrucks/products
both accept the productId parameter?
I would like to try to avoid the many routes in global.asax.cs since I feel that they are not intuitive, but I am open to ideas.
source share