public ActionResult ExamAttend(ExamAttendVm examAttendVm) { var exams = Mapper.Map <Exams>(examAttendVm); var data = examManager.GetExamByCourseExam(exams); var courseName = examManager.GetCourseById(exams.CourseId); var examStartData = Mapper.Map <ExamAttendVm>(data); examStartData.Question = data.Questions; examStartData.CourseName = courseName.CourseName; examStartData.OrganizationName = examAttendVm.OrganizationName; examStartData.StudentId = examAttendVm.StudentId; return(View("ExamStart", examStartData)); }