public async Task <List <TransferPreviewViewModel> > GetTrasnfersAsync(IWhereBuilder <Transfer> transferBuilder, IHelperBuilder <Transfer> helperBuilder, int startIndex) { if (transferBuilder == default) { throw new ArgumentNullException(nameof(transferBuilder)); } if (helperBuilder == default) { throw new ArgumentNullException(nameof(helperBuilder)); } return(await helperBuilder.BuildQuery(transferBuilder.Where(MedicContext.Transfers).Skip(startIndex)) .ProjectTo <TransferPreviewViewModel>(Configuration) .ToListAsync()); }
public async Task <List <ProtocolDrugTherapyPreviewViewModel> > GetProtocolDrugTherapiesAsync( IWhereBuilder <ProtocolDrugTherapy> protocolDrugTherapyBuilder, IHelperBuilder <ProtocolDrugTherapy> helperBuilder, int startIndex) { if (protocolDrugTherapyBuilder == default) { throw new ArgumentNullException(nameof(protocolDrugTherapyBuilder)); } if (helperBuilder == default) { throw new ArgumentNullException(nameof(helperBuilder)); } return(await helperBuilder.BuildQuery(protocolDrugTherapyBuilder.Where(MedicContext.ProtocolDrugTherapies).Skip(startIndex)) .ProjectTo <ProtocolDrugTherapyPreviewViewModel>(Configuration) .ToListAsync()); }
public async Task <List <InClinicProcedurePreviewViewModel> > GetInClinicProceduresAsync( IWhereBuilder <InClinicProcedure> inClinicProcedureBuilder, IHelperBuilder <InClinicProcedure> helperBuilder, int startIndex) { if (inClinicProcedureBuilder == default) { throw new ArgumentNullException(nameof(inClinicProcedureBuilder)); } if (helperBuilder == default) { throw new ArgumentNullException(nameof(helperBuilder)); } return(await helperBuilder.BuildQuery(inClinicProcedureBuilder.Where(MedicContext.InClinicProcedures).Skip(startIndex)) .ProjectTo <InClinicProcedurePreviewViewModel>(Configuration) .ToListAsync()); }
public async Task <List <PlannedPreviewViewModel> > GetPlanningsAsync( IWhereBuilder <Planned> plannedProcedureBuilder, IHelperBuilder <Planned> helperBuilder, int startIndex) { if (plannedProcedureBuilder == default) { throw new ArgumentNullException(nameof(plannedProcedureBuilder)); } if (helperBuilder == default) { throw new ArgumentNullException(nameof(helperBuilder)); } return(await helperBuilder.BuildQuery(plannedProcedureBuilder.Where(MedicContext.Plannings).Skip(startIndex)) .ProjectTo <PlannedPreviewViewModel>(Configuration) .ToListAsync()); }
public async Task <List <DispObservationPreviewViewModel> > GetDispObservationsAsync( IWhereBuilder <DispObservation> dispObservationBuilder, IHelperBuilder <DispObservation> helperBuilder, int startIndex) { if (dispObservationBuilder == default) { throw new ArgumentNullException(nameof(dispObservationBuilder)); } if (helperBuilder == default) { throw new ArgumentNullException(nameof(helperBuilder)); } return(await helperBuilder.BuildQuery(dispObservationBuilder.Where(MedicContext.DispObservations.Skip(startIndex))) .ProjectTo <DispObservationPreviewViewModel>(Configuration) .ToListAsync()); }