public ActionResult GetChildren(string node) { int parentId = Convert.ToInt32(node); var data = _service.ResourceTree(parentId); return(Json(data.OrderBy(x => x.SortIndex), JsonRequestBehavior.AllowGet)); }