public async Task <IEnumerable <Exam> > FetchAsync(User user) { var spec = new ExamFilterSpecification(user); var exams = await _examRepository.ListAsync(spec); return(exams.Where(x => x.Reserved)); }
public Exam GetById(int id, bool withOptions = false) { var spec = new ExamFilterSpecification(id, withOptions); return(_examRepository.GetSingleBySpec(spec)); }