我试图用一组同质参数为资源创建路由。
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) {...}
其中类别和品牌是独立的过滤器。
I found a solution for similiar task: 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)
用于动作方法
--以避免拆线和铸造?
我该如何将这种解决方案适用于我的案件?
事先谢谢大家!