How to compare these two Generic list and get the matching data as per ID
List<int> _GetRecCust;
List<Tranobject> GetTransDeta;
I tried
var TransactionsToProcess = GetTransDeta.Where(x => _GetRecCust.Contains(Convert.ToInt32(x.ID)));
but not able to get a comman ID
data.
Both having ID
as a field.
Thanks in advance