I have a list of employees, and a list of employeeGroups. I am trying get a list of employees that do not have a matching record in the employeeGroups list. I tried using the example found HERE but it is not working for my needs and I can't figure out how to change it to get the desired list. The result is always NULL.
Here is my code:
        List<ModuleView.EmployeeBO> employees = EmployeeBA.Employee_GetList_All(DB_Context, IsActiveChoice.Active, IsEnabledChoice.Enabled);
        List<PortalView.EmployeeGroupBO> groups = SecurityDA.EmployeeGroup_GetList_All(DB_Context);
        List<ModuleView.EmployeeBO> result = employees.Where(p2=> !groups.Any( p=>p.EmployeeId == p2.EmployeeId))  as List<ModuleView.EmployeeBO>;
        return result;
Any assistance is greatly appreciated!
 
     
    