Hello Experts,
Following code passes EmployeeNumber one by one and if that is found in the internalEmployeelist
then that does not become part of results.
results=results.Where(itm => !IsInternalemployee(itm.EmployeeNumber)); //results is iqueryableprivate bool IsInternalemployee(String itm){ return internalEmployeelist.Contains(itm) ? true : false; //internalEmployeelist is list<String>}
Thank you.