public void Add(PatientAppointment appointment) { if (appointment == null) { throw new ArgumentNullException("appointment"); } if (!Validate(appointment)) { return; //Or throw an exception, up to you } var patient = _patientLogic.GetById(appointment.PatientId); if (patient == null) { return; } patient.PatientAppointments.Add(appointment); }