protected void WriteHealthcareApisAccount(ServicesDescription healthcareApisAccount) { if (healthcareApisAccount != null) { WriteObject(PSHealthcareApisService.Create(healthcareApisAccount)); } }
protected void WriteHealthcareApisAccountList( IEnumerable <ServicesDescription> healthcareApisAccounts) { List <PSHealthcareApisService> output = new List <PSHealthcareApisService>(); if (healthcareApisAccounts != null) { healthcareApisAccounts.ForEach( healthcareApisAccount => output.Add(PSHealthcareApisService.Create(healthcareApisAccount))); } WriteObject(output, true); }