コード例 #1
0
        public Patient Create(Patient entity)
        {
            Validate(entity);
            Patient patient = _patientRepository.Create(entity);

            _medicalRecordRepository.Create(new MedicalRecord(patient));

            return(patient);
        }
コード例 #2
0
 public MedicalRecord Create(MedicalRecord entity)
 {
     Validate(entity);
     return(_medicalRecordRepository.Create(entity));
 }