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