public IActionResult CreatePatientContact(
            [GuidNotEmpty] Guid id,
            [FromBody] PatientContact patientContact)
        {
            if (_patientDbService.FindPatient(id) == null)
            {
                return(ReturnProblem("Patient not found.", StatusCodes.Status404NotFound));
            }

            if (_patientDbService.FindPatientContact(id) != null)
            {
                return(ReturnProblem("Patient contact already exists.", StatusCodes.Status400BadRequest));
            }

            _patientDbService.AddPatientContact(patientContact);

            return(NoContent());
        }
 public static void InitializeDb(IPatientDbService patientDbService)
 {
     patientDbService.AddPatient(Patient);
     patientDbService.AddPatientContact(PatientContact);
 }