How do I write a where statement that will exclude records if both conditions are met.
example:
var filteredRecords=AllRecords.Where(w=>w.Amount!=0 && w.Sales!=0);
so if any record had amount=0 or sales=0 I want to include.
I only want to exclude records where BOTH sales and amount are equal to 0.
example:
var filteredRecords=AllRecords.Where(w=>w.Amount!=0 && w.Sales!=0);
so if any record had amount=0 or sales=0 I want to include.
I only want to exclude records where BOTH sales and amount are equal to 0.