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()); }
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)); }