Example #1
0
        public JsonResult List()
        {
            var list   = OrganizeService.GetOrganizeList();
            var result = new { code = 0, count = list.Count(), data = list };

            return(Json(result, JsonRequestBehavior.AllowGet));
        }
Example #2
0
        public JsonResult List()
        {
            var list   = OrganizeService.GetOrganizeList().OrderBy(O => O.ParentId);
            var result = new { code = 0, count = list.Count(), data = list };

            return(Json(result));
        }