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()); }
public List <StudentLecturerEntity> Get(SearchStudentLecturerEntity searchStudentLecturerEntity) { return(StudentLecturerService.Get(UserEntity, searchStudentLecturerEntity)); }
public long Count(SearchStudentLecturerEntity searchStudentLecturerEntity) { return(StudentLecturerService.Count(UserEntity, searchStudentLecturerEntity)); }