예제 #1
0
 public Exam GetByExamCode(int examCode)
 {
     return(_context
            .Exams
            .Where(ExamSpecs.GetByExamCode(examCode))
            .FirstOrDefault());
 }
예제 #2
0
 public Exam GetByExamName(string examName)
 {
     return(_context
            .Exams
            .Where(ExamSpecs.GetByExamName(examName))
            .FirstOrDefault());
 }
예제 #3
0
 public Exam GetById(Guid id)
 {
     return(_context
            .Exams
            .Where(ExamSpecs.GetById(id))
            .FirstOrDefault());
 }