コード例 #1
0
ファイル: InternReportService.cs プロジェクト: linhlpv/IMS
        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
ファイル: InternReportService.cs プロジェクト: linhlpv/IMS
        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());
        }