public int AddPrescription(Prescription prescription) { if (ValidatePrescription(prescription, false)) { return(_prescriptionRepository.Create(prescription).Id); } throw new ArgumentException(); }