/// <summary> /// Initializes a new instance of the <see cref="PrescriptionService" /> /// class /// </summary> /// <param name="kernel"> /// The dependency injection object /// </param> public PrescriptionService(IKernel kernel) { this.kernel = kernel; medicationManager = this.kernel.Get<Medications>(); pickupManager = this.kernel.Get<PrescriptionPickups>(); }
/// <summary> /// Initializes a new instance of the <see cref="MedicationController"/> class. /// </summary> /// <param name="kernel"> /// The kernel. /// </param> public MedicationController(IKernel kernel) { Kernel = kernel; medicationManager = kernel.Get<Medications>(); }