Beispiel #1
0
 public void CreateAllMedicineTenderOffers(List<MedicineTenderOffer> medicineTenderOffers)
 {
     foreach (MedicineTenderOffer medicineTenderOffer in medicineTenderOffers)
     {
         medicineTenderOffer.PharmacyTenderOfferId = PharmacyTenderOfferRepository.getNextTenderPharmacyOfferId();
         MedicineTenderOfferRepository.Create(medicineTenderOffer);
     }
 }
Beispiel #2
0
 public MedicineTenderOfferService(MyDbContext context)
 {
     MedicineTenderOfferRepository = new MedicineTenderOfferRepository(context);
     PharmacyTenderOfferRepository = new PharmacyTenderOfferRepository(context);
     HttpRequests = new HttpRequests();
 }
Beispiel #3
0
 public PharmacyTenderOffer CreateFromTenderOrder(TenderOrder tenderOrder)
 {
     return(PharmacyTenderOfferRepository.Create(PharmacyTenderOfferAdapter.PharmacyTenderOrdedDtoToPharmacyTenderOffer(tenderOrder)));
 }
Beispiel #4
0
 public List <PharmacyTenderOffer> GetAll()
 {
     return(PharmacyTenderOfferRepository.GetAll());
 }
Beispiel #5
0
 public PharmacyTenderOffer Create(PharmacyTenderOfferDto dto)
 {
     return(PharmacyTenderOfferRepository.Create(PharmacyTenderOfferAdapter.PharmacyTenderOfferDtoToPharmacyTenderOffer(dto)));
 }
Beispiel #6
0
 public PharmacyTenderOfferService(MyDbContext context)
 {
     PharmacyTenderOfferRepository = new PharmacyTenderOfferRepository(context);
     MedicineTenderOfferService    = new MedicineTenderOfferService(context);
 }