C# select all the ids than common in 2 list code example
Example: how to query items with any id in a list of ids linq c#
var userProfiles = _dataContext.UserProfile
.Where(t => idList.Contains(t.Id));
var userProfiles = _dataContext.UserProfile
.Where(t => idList.Contains(t.Id));