( "a" is an int for age) ("IsStudent" is a bool)
I want to know how to write the following: If the age is greater than 0 and less than 18 and the person is a student
This is what I have now:
if (Model..........Where(d => d.Age >= 1 && d.Age < 22 && d.IsStudent)
sadly this give me the error: Operator '&&' cannot be applied to operands of type 'bool' and 'bool'
Any help would be appreciated