public IActionResult PostHttp(EPrescription prescription) { if (PrescriptionFileService.SendPrescriptionHttp(prescription)) { return(Ok()); } return(BadRequest()); }
public SharingPrescriptionController(MyDbContext context) { MedicineService = new MedicineService(context); PatientService = new PatientService(context); MedicineDescriptionService = new MedicineDescriptionService(context); PrescriptionFileService = new PrescriptionFileService(context); MedicineAvailabilityTable = new MedicineAvailabilityTable(); Environment = Program.Environment; }