/// <summary> /// true a>b /// </summary> /// <param name="tenantId"></param> /// <param name="deptA"></param> /// <param name="deptB"></param> /// <returns></returns> private bool compareDeptLevel(int tenantId, int deptA, int deptB) { var deptManager = new DeptManager(); var childs = deptManager.GetChildDepts(tenantId, deptA); return(childs.Any(p => p == deptB)); }