Exemple #1
0
        public ActionResult WithoutWebinar()
        {
            var webinarCourseTCs = PriceService.CourseWithWebinar();
            var ppCourseTCs      = new HashSet <string>(PriceService.GetAllCurrent()
                                                        .Where(x => x.PriceType_TC == PriceTypes.PrivatePersonWeekend).Select(x => x.Course_TC).Distinct());
            var courses = CourseService.AllCoursesForList().Where(x => !x.IsTrackBool &&
                                                                  ppCourseTCs.Contains(x.Course_TC) && !webinarCourseTCs.Contains(x.Course_TC))
                          .OrderBy(x => x.GetName())
                          .ToList();
            var sectionCourses = GroupVMService.GetSectionCourses(courses);

            return(View(CommonVM.New(sectionCourses, "Курсы, не читаемые в режиме вебинар")));
        }