How to ignore blank elements in linq query
I have a linq query
var usersInDatabase =
from user in licenseUserTable
where user.FirstName == first_name &&
user.LastName == last_name
select user;
But if I get here and first_name or last_name is blank then I want to still evaluate the other data item.
Now you will get records that match the first name given, if the first_name is empty all will match as long as it ALSO matches the last name, unless the last_name is blank as well. The only issue with this right now is that if first_name and last_name are blank, you will get everything.