private Profiles.ORCID.Utilities.ProfilesRNSDLL.BO.ORCID.Person GetPageControlValues(Profiles.ORCID.Utilities.ProfilesRNSDLL.BO.ORCID.Person bo)
        {
            bo.AlternateEmails = new List<Profiles.ORCID.Utilities.ProfilesRNSDLL.BO.ORCID.PersonAlternateEmail>();

            //bo.InternalUsername = LoggedInInternalUsername;
            bo.PersonStatusTypeID = (int)Profiles.ORCID.Utilities.ProfilesRNSDLL.BO.ORCID.REFPersonStatusType.REFPersonStatusTypes.ORCID_Created;

            if (!this.txtFirstName.Text.Equals(string.Empty))
            {
                bo.FirstName = this.txtFirstName.Text;
            }
            else
            {
                bo.FirstNameIsNull = true;
            }
            if (!this.txtLastName.Text.Equals(string.Empty))
            {
                bo.LastName = this.txtLastName.Text;
            }
            else
            {
                bo.LastNameIsNull = true;
            }
            if (!this.txtPublishedName.Text.Equals(string.Empty))
            {
                bo.PublishedName = this.txtPublishedName.Text;
            }
            foreach (string othername in this.txtOtherNames.Text.Split(Environment.NewLine.ToCharArray()))
            {
                if (!othername.Trim().Equals(string.Empty))
                {
                    Profiles.ORCID.Utilities.ProfilesRNSDLL.BO.ORCID.PersonOthername otherNameBO = new Profiles.ORCID.Utilities.ProfilesRNSDLL.BO.ORCID.PersonOthername();
                    otherNameBO.OtherName = othername.Trim();
                    bo.Othernames.Add(otherNameBO);
                }
            }
            if (!this.txtEmailAddress.Text.Equals(string.Empty))
            {
                bo.EmailAddress = this.txtEmailAddress.Text;
            }
            else
            {
                bo.EmailAddressIsNull = true;
            }
            if (!this.ddlEmailDecisionID.Text.Equals(string.Empty))
            {
                bo.EmailDecisionID = int.Parse(this.ddlEmailDecisionID.SelectedValue);
            }
            else
            {
                bo.EmailDecisionIDIsNull = true;
            }
            if (!this.ddlAlternateEmailDecisionID.Text.Equals(string.Empty))
            {
                bo.AlternateEmailDecisionID = int.Parse(this.ddlAlternateEmailDecisionID.SelectedValue);
            }
            else
            {
                bo.AlternateEmailDecisionIDIsNull = true;
            }
            foreach (string email in this.txtAlternateEmail.Text.Split(Environment.NewLine.ToCharArray()))
            {
                if (!email.Equals(string.Empty))
                {
                    Profiles.ORCID.Utilities.ProfilesRNSDLL.BO.ORCID.PersonAlternateEmail emailBO = new Profiles.ORCID.Utilities.ProfilesRNSDLL.BO.ORCID.PersonAlternateEmail();
                    emailBO.EmailAddress = email;
                    bo.AlternateEmails.Add(emailBO);
                }
            }
            return bo;
        }
        private Profiles.ORCID.Utilities.ProfilesRNSDLL.BO.ORCID.Person GetPageControlValues(Profiles.ORCID.Utilities.ProfilesRNSDLL.BO.ORCID.Person bo)
        {
            bo.AlternateEmails = new List <Profiles.ORCID.Utilities.ProfilesRNSDLL.BO.ORCID.PersonAlternateEmail>();

            //bo.InternalUsername = LoggedInInternalUsername;
            bo.PersonStatusTypeID = (int)Profiles.ORCID.Utilities.ProfilesRNSDLL.BO.ORCID.REFPersonStatusType.REFPersonStatusTypes.ORCID_Created;

            if (!this.txtFirstName.Text.Equals(string.Empty))
            {
                bo.FirstName = this.txtFirstName.Text;
            }
            else
            {
                bo.FirstNameIsNull = true;
            }
            if (!this.txtLastName.Text.Equals(string.Empty))
            {
                bo.LastName = this.txtLastName.Text;
            }
            else
            {
                bo.LastNameIsNull = true;
            }
            if (!this.txtPublishedName.Text.Equals(string.Empty))
            {
                bo.PublishedName = this.txtPublishedName.Text;
            }
            foreach (string othername in this.txtOtherNames.Text.Split(Environment.NewLine.ToCharArray()))
            {
                if (!othername.Trim().Equals(string.Empty))
                {
                    Profiles.ORCID.Utilities.ProfilesRNSDLL.BO.ORCID.PersonOthername otherNameBO = new Profiles.ORCID.Utilities.ProfilesRNSDLL.BO.ORCID.PersonOthername();
                    otherNameBO.OtherName = othername.Trim();
                    bo.Othernames.Add(otherNameBO);
                }
            }
            if (!this.txtEmailAddress.Text.Equals(string.Empty))
            {
                bo.EmailAddress = this.txtEmailAddress.Text;
            }
            else
            {
                bo.EmailAddressIsNull = true;
            }
            if (!this.ddlEmailDecisionID.Text.Equals(string.Empty))
            {
                bo.EmailDecisionID = int.Parse(this.ddlEmailDecisionID.SelectedValue);
            }
            else
            {
                bo.EmailDecisionIDIsNull = true;
            }
            if (!this.ddlAlternateEmailDecisionID.Text.Equals(string.Empty))
            {
                bo.AlternateEmailDecisionID = int.Parse(this.ddlAlternateEmailDecisionID.SelectedValue);
            }
            else
            {
                bo.AlternateEmailDecisionIDIsNull = true;
            }
            foreach (string email in this.txtAlternateEmail.Text.Split(Environment.NewLine.ToCharArray()))
            {
                if (!email.Equals(string.Empty))
                {
                    Profiles.ORCID.Utilities.ProfilesRNSDLL.BO.ORCID.PersonAlternateEmail emailBO = new Profiles.ORCID.Utilities.ProfilesRNSDLL.BO.ORCID.PersonAlternateEmail();
                    emailBO.EmailAddress = email;
                    bo.AlternateEmails.Add(emailBO);
                }
            }
            return(bo);
        }