I trying to create routes for a resource with an array of homogeneous parameters.
URL would look like this: products/category/{categoryId1}/{categoryId2}/.../brand/{brandID1}/{brandID2}/...
And would like an action method would look like this: public ActionResult GetProducts(IList categoryID, ILIsts brandID) {...}
where category and brand are independent filters.
I found a solution for similiar task: http://stackoverflow.com/questions/3634582/asp-net-mvc-2-parameter-array
And wonder if there is no more beautiful solution that allow to use this prototype public ActionResult GetProducts(IList categoryID)
instead of public ActionResult myAction(string url)
for action method
-- to avoid splitting the string and casting?
And how could I suit this solution for my case?
Thank you everybody beforehand!