mirror of
https://github.com/nsnail/FreeSql.git
synced 2025-06-19 04:18:16 +08:00
新增文档分类列表树
This commit is contained in:
@ -13,6 +13,15 @@ namespace FreeSql.Site.UI.Common
|
||||
{
|
||||
public static class HtmlHelperViewExtensions
|
||||
{
|
||||
public static string ToJson(this IHtmlHelper htmlHeler, object val)
|
||||
{
|
||||
if (val != null)
|
||||
{
|
||||
return Newtonsoft.Json.JsonConvert.SerializeObject(val);
|
||||
}
|
||||
return "";
|
||||
}
|
||||
|
||||
public static IHtmlContent Action(this IHtmlHelper helper, string action, object parameters = null)
|
||||
{
|
||||
var controller = (string)helper.ViewContext.RouteData.Values["controller"];
|
||||
|
Reference in New Issue
Block a user