Ejemplo n.º 1
0
        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);
        }
Ejemplo n.º 2
0
        public async Task <Guid> CreatePackageBookingAsync(BookedPackage bookedPackage)
        {
            await _bookedPackageRepository.InsertAsync(bookedPackage);

            return(bookedPackage.Id);
        }