Пример #1
0
        //
        // 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);
        }
Пример #2
0
        //
        // GET: /Exam/Create
        public ActionResult Create()
        {
            var courses = _repo.Courses.All;
            var exam = new Exam();

            var vm = new ExamInputModel(exam, courses);
            return View(vm);
        }