How to work with OR condition using lamda expression

How to work with OR condition using lamda expression

I am using this code 

model = model.Where((x => x.ParentId == true )||(x => x.ParentName == true))

Its not working it shows error that operator || cannot be applied to operands of type lambda expression and lamda expression

 

Last updated:7/14/2017 11:48:28 PM

1 Answers

Sunil Singh
Sunil Singh

Try  this I hope this will helps you

model = model.Where((x => (x. ParentId == true) || (x. ParentName
== true))

Answer