public async Task <long> PersistPatientDetailsAsync(PatientDto patientDto)
        {
            long patientId = 0;

            if (patientDto.Patients != null)
            {
                patientId = await _patientRepository.CreatePatient(patientDto.Patients);
            }

            if (patientDto.Treatments != null)
            {
                patientDto.Treatments.PatientId = patientId;
                await _treatmentRepository.CreateTreatment(patientDto.Treatments);
            }

            return(patientId);
        }