public Patient Create(Patient entity) { Validate(entity); Patient patient = _patientRepository.Create(entity); _medicalRecordRepository.Create(new MedicalRecord(patient)); return(patient); }
public MedicalRecord Create(MedicalRecord entity) { Validate(entity); return(_medicalRecordRepository.Create(entity)); }