public void AddControlForMicrosoftSeminars(SimplePageVM model) { var groups = CourseListVMService.GetSeminars(false) .GroupSeminars.Where(x => x.Group.IsMicrosoftseminar).ToList(); var msSeminars = GroupService.GetPlannedAndNotBegin().Where( x => CourseTC.MsSeminars.Contains(x.Course_TC)) .Select(x => new GroupSeminar(x)).ToList(); model.Controls.Add( new SimplePageVM.Control(Views.Shared.Education.SeminarList, groups)); if (msSeminars.Any()) { model.Controls.Add( new SimplePageVM.Control(Views.Shared.Education.SeminarList, msSeminars, "Расписание семинаров First Look")); } }
public ActionResult Consultations() { var model = CourseListVMService.GetSeminars(true); return(View(ViewNames.Seminars, model)); }
public ActionResult Seminars() { var model = CourseListVMService.GetSeminars(false); return(View(model)); }