0
我想知道如何使用MVC 5路由下面的情形做MVC 5可選參數路由
我的URL結構
http://www.xx.com/search/cat/1
http://www.xx.com/search/cat/prod/1
[Route("search/{cat?}/{prod?}/{pageId:int=1}")]
public ActionResult Index(string cat, string prod, int pageId)