You can use Linq only:
bool hasAllItems = UserList.All(s => SystemList.Any(mo => mo.Id == s));
0
solved Check if a list of objects contains another list (only have a property) in C# Linq
You can use Linq only:
bool hasAllItems = UserList.All(s => SystemList.Any(mo => mo.Id == s));
0
solved Check if a list of objects contains another list (only have a property) in C# Linq