I have a table which has the following values
MinValue || MaxValue
10 20
21 30
31 40
41 50
I am trying to write a check so that if the values passed in are within any range above to be true, so if a user types in
11 for MinValue and 42 for MaxValue then that range exists
49 for minValue and 51 for the MaxValue then that range exists
So i have this code
Cost cost = GetCosts().Where(c => c.MinValue <= MinValue && c.MaxValue >= MaxValue).FirstOrDefault();
This doesnt do the trick - any idea?
Go to the complete details ...