var contacts = await dbContext.Registration.Where(x => visited.Any(y => y.Id == x.Id) && visited.Any(y => (x.OutDate >= y.InDate