var x =
(from t0 in db.Employees
where
t0.FirstName.Contains("FirstName") ||
t0.LastName.Contains("LastName")
select new {
t0.DepartmentID
}).FirstOrDefault().DepartmentID;
from t in db.Departments
where
t.DepartmentID.contains(x.DepartmentID)
select t