Userdir = (from u in Userdir where u.FirstName.ToUpper().Contains(searchString.ToUpper().Trim()) || u.LastName.ToUpper().Contains(searchString.ToUpper().Trim()) || u.Username.ToUpper().Contains(searchString.ToUpper().Trim()) || u.Email.ToUpper().Contains(searchString.ToUpper().Trim()) || (u.Phone.Length < 0 ? 0 : u.Phone.Contains(searchString)) select u).ToList();
(u.Phone.Length < 0 ? 0 : u.Phone.Contains(searchString)) select u).ToList();
(u.Phone.Length < 0 ? false : u.Phone.Contains(searchString)) select u).ToList();
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)