SyntaxFix
Write A Post
Hire A Developer
Questions
Checking Count() before the WHERE clause solved my problem. It is cheaper than ToList()
if (authUserList != null && _list.Count() > 0) _list = _list.Where(l => authUserList.Contains(l.CreateUserId));