Reputation: 1
I have a project in .net 4.5 Mvc on vs 2015.
there is an action with params such as ../Catalog/Category?Src=Trendings&order=Mostpopular
in my url I don't want to show name of the controlller and "?"
this code should look like this:
../Trendings
or ../Trendings/Mostpopular
or ../Catalog/Category/src/Bestseller/Trendings/order/Mostpopular
How can I write route configs for this?
Upvotes: 0
Views: 98
Reputation: 537
You can use attribute routing. Learn more about customizing routes here.
Upvotes: 0