public JsonResult Node(string id) { //Response.CacheControl = "no-cache"; //Response.Cache.SetETag((Guid.NewGuid()).ToString()); if (String.IsNullOrEmpty(id)) { id = "n1"; } int parentId = Convert.ToInt32(id.Substring(1)); return(Json(_treeModelService.GetChildren(parentId), JsonRequestBehavior.AllowGet)); }
public ActionResult Page() { return(View(_treeModelService.GetChildren(1))); }