Beispiel #1
0
        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));
        }
Beispiel #2
0
 public ActionResult Page()
 {
     return(View(_treeModelService.GetChildren(1)));
 }