Esempio n. 1
0
 public DoctorController(DrugstoreDbContext context,
                         UserManager <SystemUser> userManager,
                         GetPrescriptionsListUseCase getPrescriptions,
                         GetPrescriptionDetailsUseCase getPrescriptionDetails,
                         GetPrescriptionUseCase getPrescription,
                         GetMedicinesUseCase getMedicines,
                         GetPatientsUseCase getPatients,
                         DeletePrescriptionUseCase deletePrescription,
                         GetTreatmentHistoryUseCase getTreatmentHistory,
                         GetPrescriptionMedicinesUseCase getPrescriptionMedicines,
                         EditPrescriptionUseCase editPrescription,
                         AddPrescriptionUseCase addPrescription)
 {
     this.context                  = context;
     this.userManager              = userManager;
     this.getPrescription          = getPrescription;
     this.getMedicines             = getMedicines;
     this.getPatients              = getPatients;
     this.deletePrescription       = deletePrescription;
     this.getTreatmentHistory      = getTreatmentHistory;
     this.getPrescriptionMedicines = getPrescriptionMedicines;
     this.editPrescription         = editPrescription;
     this.addPrescription          = addPrescription;
     getPrescriptionsList          = getPrescriptions;
     this.getPrescriptionDetails   = getPrescriptionDetails;
 }
Esempio n. 2
0
 public InternalPharmacistController(
     DrugstoreDbContext context,
     GetUnverifiedPrescriptionsUseCase getUnverifiedPrescriptions,
     GetPrescriptionUseCase getPrescription,
     AcceptPrescriptionUseCase acceptPrescription,
     RejectPrescriptionUseCase rejectPrescription)
 {
     this.context = context;
     this.getUnverifiedPrescriptions = getUnverifiedPrescriptions;
     this.getPrescription            = getPrescription;
     this.acceptPrescription         = acceptPrescription;
     this.rejectPrescription         = rejectPrescription;
 }