How do you handle variable number of segments in a route definition?

Submitted by: Administrator
Use a route with a catch-all parameter. An example is shown below. * is referred to as catch-all parameter.
controller/{action}/{*parametervalues}
Submitted by: Administrator

Read Online Model View Controller (MVC) Job Interview Questions And Answers