public string loadSysMenu(string parentid) { List <Model.Sys.SysMenu> list = new List <Model.Sys.SysMenu>(); list = bllmenu.GetListMenu(parentid); var s = JsonConvert.SerializeObject(list); return(s); }
public String GetListMenu(string parentId) { try { List <Model.Sys.SysMenu> dt = bllmenu.GetListMenu(parentId); string res = JsonConvert.SerializeObject(dt, new IsoDateTimeConverter { DateTimeFormat = "yyyy-MM-dd HH:mm:ss" }); return(res); } catch (Exception ex) { return(null); } }