private async Task <IReadOnlyCollection <ProjectWithClaimCount> > GetProjectWithClaimCounts( Expression <Func <Project, bool> > condition, int?userId) { var builder = GetProjectWithClaimCountBuilder(userId); return(await AllProjects .AsExpandable() .Where(condition) .Select(builder).ToListAsync()); }