예제 #1
0
        //Edit Exam
        public ActionResult Edit(int id)
        {
            Exam exam = new Exam();

            if (id > 0)
            {
                exam = _examManager.GetById(id);
                var model = Mapper.Map <ExamEntryVm>(exam);

                model.OrganizationListItem = GetOrganizationList();
                model.ExamTypeListItem     = GetAllExamTypes();

                return(View(model));
            }

            return(View());
        }