Example #1
0
 public List <Group> GetAllCourseGroups()
 {
     return(StudentInGroups
            .Where(sig => sig.Group != null && !sig.Group.IsExam &&
                   !BerthTypes.Hide.Contains(sig.BerthType_TC) && sig.Group.Course_TC != CourseTC.ZaochSpec).Select(x => x.Group)
            .OrderByDescending(g => g.DateBeg).ToList());
 }
Example #2
0
 public IOrderedEnumerable <StudentInGroup> GetPaidGroups()
 {
     return(StudentInGroups
            .Where(sig => sig.Group != null &&
                   sig.Group.Course_TC != CourseTC.ZaochSpec &&
                   BerthTypes.AllPaid.Contains(sig.BerthType_TC))
            .OrderByDescending(sig => sig.Group.DateBeg));
 }