//Evaluation Result
        public int AddEvaluationResult(EvaluationResult evaluationResult)
        {
            var EvalID = _evaluationResultRepository.Add(evaluationResult).EvaluationResultID;

            Engine.CourseCompleteProcessEngine _engine = new Engine.CourseCompleteProcessEngine();
            _engine.RunEngineAfterEvalCompleted(evaluationResult.MEID);
            return(EvalID);
        }
Exemple #2
0
        public int UpdateMyEducationModule(DLModel.MyEducationModule myEducationModule)
        {
            var id = _myEducationModuleRepository.Update((DLModel.MyEducationModule) new DLModel.MyEducationModule().InjectFrom(myEducationModule));

            //check if pretest, exam and eval are not required for course then complete course...hp
            Engine.CourseCompleteProcessEngine _engine = new Engine.CourseCompleteProcessEngine();
            _engine.RunEngineAfterModuleCompleted(myEducationModule.MEID);
            return(id);
        }
        public void UpdateExamResultIsPass(int examResultID, int MEID, bool isPass)
        {
            ExamResult examResult = new ExamResult()
            {
                ExamResultID = examResultID,
                IsPass       = isPass
            };

            _examResultRepository.Update(examResult, hp => hp.IsPass);

            Engine.CourseCompleteProcessEngine _engine = new Engine.CourseCompleteProcessEngine();
            _engine.RunEngineAfterExamCompleted(MEID, isPass);
        }