예제 #1
0
        public List <InternFollowEntity> Get(UserEntity UserEntity, SearchInternFollowEntity SearchInternReportEntity)
        {
            if (SearchInternReportEntity == null)
            {
                SearchInternReportEntity = new SearchInternFollowEntity();
            }
            IQueryable <InternFollow> InternFollows = IMSContext.InternFollows
                                                      .Include(tf => tf.Student)
                                                      .Include(tf => tf.InternNews);

            InternFollows = SearchInternReportEntity.ApplyTo(InternFollows);
            InternFollows = SearchInternReportEntity.SkipAndTake(InternFollows);
            return(InternFollows.ToList().ConvertAll(u => new InternFollowEntity(u)).ToList());
        }