public ActionResult DownloadAnswerCode(Guid? id)
        {
            DownloadAnswerCodeViewModel model = new DownloadAnswerCodeViewModel();
            model.Assessments = new SelectList(dataRepository.GetAllNonTestBankAssessments(courseTerm), "AssessmentID", "Name", id);

            return View(model);
        }
        public ActionResult DownloadAnswerCode(Guid AssessmentID)
        {
            DownloadAnswerCodeViewModel model = new DownloadAnswerCodeViewModel();
            model.Assessments = new SelectList(dataRepository.GetAllNonTestBankAssessments(courseTerm), "AssessmentID", "Name", AssessmentID);

            Assessment assessment = dataRepository.GetAssessmentByID(courseTerm,AssessmentID);
            if (assessment != null)
            {
                model.Answers = (from answer in assessment.Answers
                                 where answer.Type == "code-answer"
                                 select answer).ToList();

                model.Assessment = assessment;
            }

            return View(model);
        }