public void SavePrescription(string patientFullName, string doctorFullName, List <Tuple <string, int> > medicineBoxNamesAndQuantities)
        {
            int patientId                    = PatientService.GetIdByFullName(patientFullName);
            int doctorDiplomaNumber          = DoctorService.GetDiplomaNumberByFullName(doctorFullName);
            List <MedicineBox> medicineBoxes = new List <MedicineBox>(medicineBoxNamesAndQuantities.Count);

            foreach (var medicineBoxNameAndQuantity in medicineBoxNamesAndQuantities)
            {
                medicineBoxes.AddRange(MedicineBoxService.GetUnsoldMedicineBoxesByMedicineName(medicineBoxNameAndQuantity.Item1, medicineBoxNameAndQuantity.Item2));
            }

            var newPrescriptionId = PrescriptionsService.SaveNewAndGetPrescriptionId(patientId, doctorDiplomaNumber);

            foreach (var medicineBox in medicineBoxes)
            {
                MedicineBoxService.UpdateMedicineBoxPrescriptionId(medicineBox, newPrescriptionId);
            }
        }