public void ShowPrescriptionWithMedicines(int prescriptionId) { Prescription selectedPrescription = prescriptionRepository.LoadFromDB(prescriptionId); Console.WriteLine($"Dane recepty o id: {prescriptionId}:"); Console.WriteLine(selectedPrescription.ToString()); List <Medicine> medicines = medicineRepository.LoadMedicinesFromPrescription(prescriptionId); Console.WriteLine($"Leki z recepty o id: {prescriptionId} i sygnaturze {selectedPrescription.PrescriptionSignature}:"); foreach (Medicine m in medicines) { Console.WriteLine(m.ToString()); } }