Пример #1
0
 public TenderController(MyDbContext context)
 {
     MedicineForTenderingService = new MedicineForTenderingService(context);
     TenderService = new TenderService(context);
     MedicineTenderOfferService = new MedicineTenderOfferService(context);
     PharmacyTenderOfferService = new PharmacyTenderOfferService(context);
     SmptServerService          = new SmptServerService();
 }
Пример #2
0
 public IActionResult GetMedicinesForTendering()
 {
     return(Ok(MedicineForTenderingService.GetAll()));
 }
Пример #3
0
 public IActionResult Post(TenderOrder tender)
 {
     TenderService.Create(TenderAdapter.TenderToTenderDto(new Tender(DateTime.Parse(tender.Date), false)));
     MedicineForTenderingService.CreateAllMedicineForTendering(tender);
     return(Ok());
 }