I have a query where it should return TRUE or FALSE.
var query = from c in db.Emp
from d in db.EmpDetails
where c.ID == d.ID &&
If I understand you correctly you want to get true
if one of the results of the query matches all conditions. In that case try something like this:
var found =
(from c in db.Emp
from d in db.EmpDetails
where c.ID == y.ID && c.FirstName == "A" && c.LastName == "D"
select c).Any();
this.result = found.ToString();