public ActionResult ShowLectures()
        {
            var studentRepo    = new StudentRepo();
            var lectureRepo    = new LectureRepo();
            var model          = new StudyProgram();
            var studyProgramId = studentRepo.GetApplicationUserStudyProgramId(this.User.Identity.GetUserId());

            model.Lectures = lectureRepo.GetAllStudyProgramLectures(studyProgramId);
            return(View(model.Lectures));
        }
        public ActionResult Index()
        {
            var lectureScheduleRepo = new LectureScheduleRepo();
            var studentRepo         = new StudentRepo();
            var model          = new StudyProgram();
            var studyProgramId = studentRepo.GetApplicationUserStudyProgramId(this.User.Identity.GetUserId());
            var lectureIdList  = lectureScheduleRepo.GetAllStudyProgramLectures(DateTime.Today, studyProgramId);
            var lectureRepo    = new LectureRepo();
            var lectureList    = new List <Lecture>();

            for (int i = 0; i < lectureIdList.Count; i++)
            {
                lectureList.Add(lectureRepo.GetLecturesById(lectureIdList[i]));
            }
            model.Lectures = lectureList;
            return(View(model.Lectures));
        }