- 2025年05月12日
- 星期一
我正在为路由创建一个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