예제 #1
0
        public void RunEngineAfterExamCompleted(int _meID, bool isExamPassed)
        {
            int _educationID = _myEducationRepository.GetAll(hp => hp.MEID == _meID).FirstOrDefault().EducationID;

            if ((isExamPassed) && (_educationEvaluationRepository.GetDbSet().Where(hp => hp.EducationID == _educationID && hp.IsActive == true).Count() == 0))
            {
                UpdateMyEducation(_meID, isExamPassed);
            }
            else if ((!isExamPassed) && (_examResultRepository.GetAll(hp => hp.MEID == _meID).Count() == 3))
            {
                UpdateMyEducation(_meID, isExamPassed);
            }
        }
 public List <ExamResult> GetAll()
 {
     return(_examResult.GetAll());
 }
        public IEnumerable <ExamResult> GetExamAttempResulttByUser(int userID, int MEID)
        {
            IEnumerable <ExamResult> _examResults = _examResultRepository.GetAll(hp => (hp.MEID == MEID) && (hp.UID == userID)).ToList();

            return(_examResults);
        }