/////// <summary>
        //List<Programme> FillSelectList()
        //{
        //    var programmes = _programmeRepository.GetAllProgrammes().ToList();
        //    programmes.Insert(0, new Programme { ProgrammeCode = "-1", ProgrammeName = "--- Please select an author ---" });

        //    return programmes;
        //}

        //ExamProgrammeViewModel GetAllProgrammes()
        //{
        //    var vmodel = new ExamProgrammeViewModel
        //    {
        //        Programmes = FillSelectList()
        //    };

        //    return vmodel;
        //}



        //
        public IActionResult SelectProgramme(string category)
        {
            var examsListViewModel = new ExamViewModel();
            var listExam           = category != "-1" ? _examRepository.GetExamsByProgrammeCode(category) : _examRepository.GetMyExams();

            if (listExam == null)
            {
                return(NotFound());
            }
            examsListViewModel.Exams = listExam;
            var programmesList = _programmeRepository.GetAllProgrammes().Select(r => new { r.ProgrammeCode, r.ProgrammeName }).ToList();

            //examsListViewModel.ProgrammesList = new SelectList(programmesList, "ProgrammeCode", "ProgrammeName");
            examsListViewModel.ProgrammeCode = category;
            return(View("Index", examsListViewModel));
        }