示例#1
0
        public long Count(UserEntity UserEntity, SearchLecturerFollowEntity SearchLecturerFollowEntity)
        {
            if (SearchLecturerFollowEntity == null)
            {
                SearchLecturerFollowEntity = new SearchLecturerFollowEntity();
            }
            IQueryable <LecturerFollow> Lecturers = IMSContext.LecturerFollows;

            Lecturers = SearchLecturerFollowEntity.ApplyTo(Lecturers);
            return(Lecturers.Count());
        }
示例#2
0
        public List <LecturerFollowEntity> Get(UserEntity UserEntity, SearchLecturerFollowEntity SearchLecturerFollowEntity)
        {
            if (SearchLecturerFollowEntity == null)
            {
                SearchLecturerFollowEntity = new SearchLecturerFollowEntity();
            }
            IQueryable <LecturerFollow> Lecturers = IMSContext.LecturerFollows
                                                    .Include(s => s.Student)
                                                    .Include(s => s.Lecturer);

            Lecturers = SearchLecturerFollowEntity.ApplyTo(Lecturers);
            Lecturers = SearchLecturerFollowEntity.SkipAndTake(Lecturers);
            return(Lecturers.ToList().Select(u => new LecturerFollowEntity(u)).ToList());
        }
示例#3
0
 public List <LecturerFollowEntity> Get(SearchLecturerFollowEntity SearchLecturerFollowEntity)
 {
     return(LecturerFollowService.Get(UserEntity, SearchLecturerFollowEntity));
 }
示例#4
0
 public long Count(SearchLecturerFollowEntity SearchLecturerFollowEntity)
 {
     return(LecturerFollowService.Count(UserEntity, SearchLecturerFollowEntity));
 }