I am trying to find all spreads in a list where the spread contains a contractId from another list. I can't figure it out.
Here is what I have tried:
public List<Spread> GetSpreadByContractIds(List<string> contractIds)
//var spreads = (from s in Spreads where contractIds.Contains(s => s.ContractIds) select s).ToList();
List<Spread> results = (from s in Spreads join cts in contractIds on s.ContractIds equals cts select s).ToList();