With this code
var res = (from p in list where
p.FirstName.ToUpper() == firstName.ToUpper() ||
p.LastName.ToUpper() == lastName.ToUpper() select p).ToList<Client>();
The p.FirstName, or the firstName can be NULL how can I manage this ?
Thanks,
Like this:
where String.Equals(p.LastName, lastName, StringComparison.OrdinalIgnoreCase)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With