here is an example
Audit audit = new Audit();
List<int> ints = userReports.Select(y => y.ReportId).ToList();
List<int> ints = userReports.Select(y => y.ReportId).ToList();
List<ReportUserVisit> userReportLastMonthVisit = audit.GetAudit(userId, AuditType.Report)
.Where(x => ints.Contains((int)x.ObjectId))
.Select(x=> x.ObjectId)
.GroupBy(x=>x.Value)
.Select(x=>new ReportUserVisit { ReportId = x.Key, LastMonthVisitCount= x.Count() })
.ToList();
.Where(x => ints.Contains((int)x.ObjectId))
.Select(x=> x.ObjectId)
.GroupBy(x=>x.Value)
.Select(x=>new ReportUserVisit { ReportId = x.Key, LastMonthVisitCount= x.Count() })
.ToList();
because ints collection is list of int it can use contains method inside entity framework