// // GET: /Exam/Delete/5 public ActionResult Delete(int id) { var courses = _repo.Courses.All; var exam = _repo.Exams.All.Single(e => e.Id == id); var vm = new ExamInputModel(exam, courses); return View(vm); }
// // GET: /Exam/Create public ActionResult Create() { var courses = _repo.Courses.All; var exam = new Exam(); var vm = new ExamInputModel(exam, courses); return View(vm); }