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()); }
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()); }