Going nuts over this.
Simple query but its just not working. I simply need to get the company units that are not currently assigned to any users.
IDs are GUID type.
When debugging I see that there are 2 objects in companyUnits and 1 in userCompanyUnits. I'm trying to get that 1 companyUnit ( that doesn't exist in userCompanyunit) to show. Instead I get no results back.
Any idea what's wrong with the query? Maybe i can't compare based on guids ?
var companyUnitsList = from x in companyUnits
where !(from c in userCompanyUnits
select c.CompanyUnit.Id).Contains(x.Id)
select x;
Thanks in advance !