0

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?

SelmanTE
  • 1
  • 3

1 Answers1

0

You can use attribute routing. Learn more about customizing routes here.

javachipper
  • 519
  • 4
  • 15