public bool hasChild(int?parentID, int roleid) { return(RoleManagementTables.GetUserModule(roleid).Any(p => p.ParentID == parentID && p.isActive == true)); }