示例#1
0
        private IResult CheckIfExamNameExists(string examTitle)
        {
            if (_examDal.Get(p => p.Title == examTitle) != null)
            {
                return(new ErrorResult(Messages.ExamAlreadyExists));
            }

            return(new SuccessResult());
        }
示例#2
0
 public void Delete(int examId)
 {
     _examDal.Delete(_examDal.Get(filter: exam => exam.Id == examId));
 }
示例#3
0
 public Exam GetById(int examId)
 {
     return(_examDal.Get(filter: exam => exam.Id == examId));
 }