コード例 #1
0
        public async Task CreateExam(CreateExamsViewModel createExams)
        {
            Exam exam = new Exam
            {
                CourseID    = createExams.CourseID,
                CreatedBy   = createExams.CreatedBy,
                DateCreated = DateTime.Now,
                ExamName    = createExams.ExamNo,
                ExamType    = createExams.ExamType,
                ExamNo      = createExams.ExamNo,
                PassScore   = createExams.PassMark
            };

            await _examsRepo.CreateExams(exam);
        }