public UrgentOrderService(MyDbContext context) { HttpRequests = new HttpRequests(); MedicineAvailabilityTable = new MedicineAvailabilityTable(); UrgentMedicineOrderRepository = new UrgentMedicineOrderRepository(context); PharmacyFactoryGrpcAndSftp = new PharmacyFactoryGrpcAndSftp(); PharmacyFactoryHttp = new PharmacyFactoryHttp(); Context = context; }
public List <UrgentMedicineOrder> GetAll() { return(UrgentMedicineOrderRepository.GetAll()); }
public UrgentMedicineOrder Create(UrgentMedicineOrderDto dto) { return(UrgentMedicineOrderRepository.Create(UrgentMedicineOrderAdapter.UrgentMedicineOrderDtoUrgentMedicineOrder(dto))); }
public UrgentOrderService(MyDbContext context) { HttpService = new HttpService(); MedicineAvailabilityTable = new MedicineAvailabilityTable(); UrgentMedicineOrderRepository = new UrgentMedicineOrderRepository(context); }