コード例 #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());
        }
コード例 #3
0
ファイル: InternReportController.cs プロジェクト: linhlpv/IMS
 public List <InternReportEntity> Get(SearchInternReportEntity SearchInternReportEntity)
 {
     return(InternReportService.Get(UserEntity, SearchInternReportEntity));
 }
コード例 #4
0
ファイル: InternReportController.cs プロジェクト: linhlpv/IMS
 public long Count(SearchInternReportEntity SearchInternReportEntity)
 {
     return(InternReportService.Count(UserEntity, SearchInternReportEntity));
 }