Esempio n. 1
0
        public long Count(UserEntity UserEntity, SearchLecturerEntity SearchLecturerEntity)
        {
            if (SearchLecturerEntity == null)
            {
                SearchLecturerEntity = new SearchLecturerEntity();
            }
            IQueryable <Lecturer> Lecturers = IMSContext.Lecturers;

            Lecturers = SearchLecturerEntity.ApplyTo(Lecturers);
            return(Lecturers.Count());
        }
Esempio n. 2
0
        public List <OperationEntity> Get(UserEntity UserEntity, SearchLecturerEntity SearchLecturerEntity)
        {
            if (SearchLecturerEntity == null)
            {
                SearchLecturerEntity = new SearchLecturerEntity();
            }
            IQueryable <Lecturer> Lecturers = IMSContext.Lecturers;

            Lecturers = SearchLecturerEntity.ApplyTo(Lecturers);
            Lecturers = SearchLecturerEntity.SkipAndTake(Lecturers);
            return(Lecturers.ToList().Select(u => new OperationEntity(u)).ToList());
        }
Esempio n. 3
0
 public List <OperationEntity> Get(SearchLecturerEntity SearchLecturerEntity)
 {
     return(LecturerService.Get(UserEntity, SearchLecturerEntity));
 }
Esempio n. 4
0
 public long Count(SearchLecturerEntity SearchLecturerEntity)
 {
     return(LecturerService.Count(UserEntity, SearchLecturerEntity));
 }