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