/// <summary> /// 获取所有子部门 /// </summary> /// <param name="PID"></param> /// <returns></returns> public JsonResult GetChildNodes(int PID) { var list = bll.GetChildNodes(PID); return(base.List <DeptTreeNode>(list.Count(), list)); }
/// <summary> /// 获取所有子部门 /// </summary> /// <param name="PID"></param> /// <returns></returns> public JsonResult GetChildNodes(int PID) { var result = bll.GetChildNodes(PID); return(Json(result)); }