Posts

Showing posts from October, 2021

Linq list filtered on list

modelItems is a list of Model intList  is a list of Integers I am looking for modelItems where the id is in my Int List var myFilteredList= modelItems.Where(item => intList.Contains(item.Id))   .Select(a => a).ToList();