예제 #1
0
        public long Count(UserEntity userEntity, SearchInternReportEntity SearchInternReportEntity)
        {
            if (SearchInternReportEntity == null)
            {
                SearchInternReportEntity = new SearchInternReportEntity();
            }
            IQueryable <InternReport> internReports = IMSContext.InternReports;

            internReports = SearchInternReportEntity.ApplyTo(internReports);
            return(internReports.Count());
        }
예제 #2
0
        public List <InternReportEntity> Get(UserEntity UserEntity, SearchInternReportEntity SearchInternReportEntity)
        {
            if (SearchInternReportEntity == null)
            {
                SearchInternReportEntity = new SearchInternReportEntity();
            }
            IQueryable <InternReport> InternReports = IMSContext.InternReports;

            InternReports = SearchInternReportEntity.ApplyTo(InternReports);
            InternReports = SearchInternReportEntity.SkipAndTake(InternReports);
            return(InternReports.Select(u => new InternReportEntity(u)).ToList());
        }
예제 #3
0
 public List <InternReportEntity> Get(SearchInternReportEntity SearchInternReportEntity)
 {
     return(InternReportService.Get(UserEntity, SearchInternReportEntity));
 }
예제 #4
0
 public long Count(SearchInternReportEntity SearchInternReportEntity)
 {
     return(InternReportService.Count(UserEntity, SearchInternReportEntity));
 }