I set up two variables, and am trying to compare values from both. I set up a .Where(), where I try to compare the second var to the first. How do I get the values of the second var, inside a .Where()?
var fail = securityContext.Attempts.Where(f => f.Date < from
&& f.Date > to && f.Opened == false);
var success = securityContext.Attempts.Where(s => s.Date < from
&& s.Date > to && s.Opened == true);
var nonSuspicious = fail.Where(n => n.Date < success.Any(d => d.Date);