コード例 #1
0
 public UrgentOrderService(MyDbContext context)
 {
     HttpRequests = new HttpRequests();
     MedicineAvailabilityTable     = new MedicineAvailabilityTable();
     UrgentMedicineOrderRepository = new UrgentMedicineOrderRepository(context);
     PharmacyFactoryGrpcAndSftp    = new PharmacyFactoryGrpcAndSftp();
     PharmacyFactoryHttp           = new PharmacyFactoryHttp();
     Context = context;
 }
コード例 #2
0
 public List <UrgentMedicineOrder> GetAll()
 {
     return(UrgentMedicineOrderRepository.GetAll());
 }
コード例 #3
0
 public UrgentMedicineOrder Create(UrgentMedicineOrderDto dto)
 {
     return(UrgentMedicineOrderRepository.Create(UrgentMedicineOrderAdapter.UrgentMedicineOrderDtoUrgentMedicineOrder(dto)));
 }
コード例 #4
0
 public UrgentOrderService(MyDbContext context)
 {
     HttpService = new HttpService();
     MedicineAvailabilityTable     = new MedicineAvailabilityTable();
     UrgentMedicineOrderRepository = new UrgentMedicineOrderRepository(context);
 }