在 ASP.NET MVC 中,我有一个定义的包罗万象的路线,如下所示:
routes.MapRoute(
"TagsRoute",
"tags/{*tags}",
new { controller = "home", action = "tags"}
);
在控制器内部,我正在查询输入的产品{tags}
如下:
public ViewResult(string[] tags) {
var model = _repo.Get(tags);
return View(model);
}
我正在努力解决的是如何使用MVCSiteMapProvider DynamicNodeProviderBase
类创建站点地图。
任何想法?