public static GetEnterprisesOKResponseEnterprisesItem GetEnterprise(ServiceHelper serviceHelper, string externalID)
        {
            GetEnterprisesArgs getEnterpriseArgs = new GetEnterprisesArgs(
                new GetEnterprisesArgsParameter()
            {
                ExternalID = externalID
            });

            GetEnterprisesOKResponse response = serviceHelper.ContactService.GetEnterprises(getEnterpriseArgs);

            GetEnterprisesOKResponseEnterprisesItem enterprisesItem;

            try
            {
                enterprisesItem = response.Enterprises.SingleOrDefault();
            }
            catch (ArgumentNullException e)
            {
                throw new ArgumentNullException("Enterprise search resultet in no enterprises", e);
            }
            catch (InvalidOperationException e)
            {
                throw new InvalidOperationException("Enterprise search has more than one result. Recno shoud be unique, check you data", e);
            }

            return(enterprisesItem);
        }
        public static GetEnterprisesOKResponse GetEnterprises(ServiceHelper serviceHelper)
        {
            GetEnterprisesArgs getEnterpriseArgs = new GetEnterprisesArgs(
                new GetEnterprisesArgsParameter());

            GetEnterprisesOKResponse response = serviceHelper.ContactService.GetEnterprises(getEnterpriseArgs);

            return(response);
        }