
asp.net-mvc – Url.RouteUrl返回null
我正在为路由创建一个UrlHelper 如 best practices 问题是返回值始终为空 当调试发现时 Url.RouteUrl(“x”)返回null Url.RouteCollection [“X”] return Route 我正在努力: public static string Category(this UrlHelper helper, int Id, string categor
我正在为路由创建一个UrlHelper 如 best practices 问题是返回值始终为空 当调试发现时 Url.RouteUrl(“x”)返回null Url.RouteCollection [“X”] return Route 我正在努力: public static string Category(this UrlHelper helper, int Id, string categor