public async Task <IEnumerable <Project> > GetMyActiveProjectsAsync(int userInfoId) => await ActiveProjects.Where(MyProjectPredicate(userInfoId)).ToListAsync();
public IEnumerable <Project> GetMyActiveProjects(int?userInfoId) => userInfoId == null?Enumerable.Empty <Project>() : ActiveProjects.Where(MyProjectPredicate(userInfoId));
public async Task <IEnumerable <Project> > GetActiveProjectsWithClaimCount() => await ActiveProjects.Include(p => p.Claims).ToListAsync();
public async Task <IEnumerable <Project> > GetActiveProjectsWithSchedule() => await ActiveProjects.Where(project => project.Details.ScheduleEnabled) .ToListAsync();
public async Task <IEnumerable <Project> > GetProjectsWithoutAllrpgAsync() => await ActiveProjects.Where(p => p.Details.AllrpgId == null).ToListAsync();