Is it possible to pass multiple parameters to C# MVC action without knowing the exactly number?
For example, I could pass
mywebsite.com/brands/gm/ford/fiat/dodge
OR
mywebsite.com/brands/gm/ford/fiat
However, I don't want to have to create a route like:
"brands/{brand1}/{brand2}/{brand3}/{brand4}"
Because a variable number of brands will be passed to it.
How can I achieve this?