Пример #1
0
 public IQueryable <Request> GetAll()
 {
     return(_genericRepository.AsQueryable(a => a.RequestId > 0));
 }
 public PartimInformation GetBySuperCode(string superCode)
 {
     return(_genericRepository.AsQueryable(p => p.SuperCode == superCode).First());
 }
Пример #3
0
        //public IQueryable<File> GetByOpleiding(int opleidingId)
        //{
        //    return "TODO"
        //}

        public IQueryable <File> GetAllNonEmpty()
        {
            return(_genericRepository.AsQueryable(d => d.Requests.Count > 0));
        }
Пример #4
0
 public bool IsBewijsFromStudent(string email)
 {
     return(_genericRepository.AsQueryable(b => b.Student.Email == email).Any());
 }
Пример #5
0
 public Lecturer GetByEmail(string email)
 {
     return(!EmailExists(email) ? null : _genericRepository.AsQueryable(d => d.Email == email).First());
 }