public long Count(UserEntity userEntity, SearchStudentLecturerEntity searchStudentLecturerEntity)
        {
            if (searchStudentLecturerEntity == null)
            {
                searchStudentLecturerEntity = new SearchStudentLecturerEntity();
            }
            IQueryable <StudentLecturer> studentLecturers = IMSContext.StudentLecturers;

            studentLecturers = searchStudentLecturerEntity.ApplyTo(studentLecturers);
            return(studentLecturers.Count());
        }
        public List <StudentLecturerEntity> Get(UserEntity userEntity, SearchStudentLecturerEntity searchStudentLecturerEntity)
        {
            if (searchStudentLecturerEntity == null)
            {
                searchStudentLecturerEntity = new SearchStudentLecturerEntity();
            }
            IQueryable <StudentLecturer> studentLecturers = IMSContext.StudentLecturers;

            studentLecturers = searchStudentLecturerEntity.ApplyTo(studentLecturers);
            studentLecturers = searchStudentLecturerEntity.SkipAndTake(studentLecturers);
            return(studentLecturers.ToList().Select(sl => new StudentLecturerEntity(sl)).ToList());
        }
Example #3
0
 public List <StudentLecturerEntity> Get(SearchStudentLecturerEntity searchStudentLecturerEntity)
 {
     return(StudentLecturerService.Get(UserEntity, searchStudentLecturerEntity));
 }
Example #4
0
 public long Count(SearchStudentLecturerEntity searchStudentLecturerEntity)
 {
     return(StudentLecturerService.Count(UserEntity, searchStudentLecturerEntity));
 }