how to check if a value exists in a list linq code example
Example: linq check if exists in list
using System.Linq;
...
bool has = list.Any(cus => cus.FirstName == "John");
using System.Linq;
...
bool has = list.Any(cus => cus.FirstName == "John");