public static BookedPackage Create(int tenantId, Guid patientId, int barCodeId, string collectionDate, List <LabTest> labTests) { var bookedPackage = new BookedPackage { TenantId = tenantId, PatientId = patientId, BarCodeId = barCodeId, SampleCollectedDate = collectionDate, LabTests = labTests }; return(bookedPackage); }
public async Task <Guid> CreatePackageBookingAsync(BookedPackage bookedPackage) { await _bookedPackageRepository.InsertAsync(bookedPackage); return(bookedPackage.Id); }