public long Count(UserEntity UserEntity, SearchStudentEntity SearchStudentEntity) { if (SearchStudentEntity == null) { SearchStudentEntity = new SearchStudentEntity(); } IQueryable <Student> Students = IMSContext.Students; Students = SearchStudentEntity.ApplyTo(Students); return(Students.Count()); }
public List <StudentEntity> Get(UserEntity UserEntity, SearchStudentEntity SearchStudentEntity) { if (SearchStudentEntity == null) { SearchStudentEntity = new SearchStudentEntity(); } IQueryable <Student> Students = IMSContext.Students .Include(s => s.InternshipCourses) .Include(s => s.LecturerFollows) .Include(s => s.InternFollows) .Include(s => s.StudentLecturers); Students = SearchStudentEntity.ApplyTo(Students); Students = SearchStudentEntity.SkipAndTake(Students); return(Students.ToList().Select(u => new StudentEntity(u, u.LecturerFollows, u.InternFollows)).ToList()); }
public List <StudentEntity> Get(SearchStudentEntity SearchStudentEntity) { return(studentService.Get(UserEntity, SearchStudentEntity)); }
public long Count(SearchStudentEntity SearchStudentEntity) { return(studentService.Count(UserEntity, SearchStudentEntity)); }