private void DoUpdate(ParticipantExchangeVisitor participantExchangeVisitor, UpdatedParticipantExchangeVisitor updatedParticipantExchangeVisitor)
        {
            //participantPersonValidator.ValidateUpdate(GetUpdatedPersonParticipantValidationEntity(participantType));
            updatedParticipantExchangeVisitor.Audit.SetHistory(participantExchangeVisitor);

            participantExchangeVisitor.FieldOfStudyId       = updatedParticipantExchangeVisitor.FieldOfStudyId;
            participantExchangeVisitor.PositionId           = updatedParticipantExchangeVisitor.PositionId;
            participantExchangeVisitor.ProgramCategoryId    = updatedParticipantExchangeVisitor.ProgramCategoryId;
            participantExchangeVisitor.FundingSponsor       = updatedParticipantExchangeVisitor.FundingSponsor;
            participantExchangeVisitor.FundingPersonal      = updatedParticipantExchangeVisitor.FundingPersonal;
            participantExchangeVisitor.FundingVisGovt       = updatedParticipantExchangeVisitor.FundingVisGovt;
            participantExchangeVisitor.FundingVisBNC        = updatedParticipantExchangeVisitor.FundingVisBNC;
            participantExchangeVisitor.FundingGovtAgency1   = updatedParticipantExchangeVisitor.FundingGovtAgency1;
            participantExchangeVisitor.GovtAgency1Id        = updatedParticipantExchangeVisitor.GovtAgency1Id;
            participantExchangeVisitor.GovtAgency1OtherName = updatedParticipantExchangeVisitor.GovtAgency1OtherName;
            participantExchangeVisitor.FundingGovtAgency2   = updatedParticipantExchangeVisitor.FundingGovtAgency2;
            participantExchangeVisitor.GovtAgency2Id        = updatedParticipantExchangeVisitor.GovtAgency2Id;
            participantExchangeVisitor.GovtAgency2OtherName = updatedParticipantExchangeVisitor.GovtAgency2OtherName;
            participantExchangeVisitor.FundingIntlOrg1      = updatedParticipantExchangeVisitor.FundingIntlOrg1;
            participantExchangeVisitor.IntlOrg1Id           = updatedParticipantExchangeVisitor.IntlOrg1Id;
            participantExchangeVisitor.IntlOrg1OtherName    = updatedParticipantExchangeVisitor.IntlOrg1OtherName;
            participantExchangeVisitor.FundingIntlOrg2      = updatedParticipantExchangeVisitor.FundingIntlOrg2;
            participantExchangeVisitor.IntlOrg2Id           = updatedParticipantExchangeVisitor.IntlOrg2Id;
            participantExchangeVisitor.IntlOrg2OtherName    = updatedParticipantExchangeVisitor.IntlOrg2OtherName;
            participantExchangeVisitor.FundingOther         = updatedParticipantExchangeVisitor.FundingOther;
            participantExchangeVisitor.OtherName            = updatedParticipantExchangeVisitor.OtherName;
            participantExchangeVisitor.FundingTotal         = updatedParticipantExchangeVisitor.FundingTotal;
        }
        /// <summary>
        /// Updates a participant person exchange visitor  info with given updated exchange visitor  information.
        /// </summary>
        /// <param name="updatedParticipantStudentVistor">The updated participant person exchange visitor  info.</param>
        public void Update(UpdatedParticipantExchangeVisitor updatedParticipantExchangeVisitor)
        {
            var participantExchangeVisitor = CreateGetParticipantExchangeVisitorByIdQuery(updatedParticipantExchangeVisitor.ParticipantId).FirstOrDefault();

            throwIfModelDoesNotExist(updatedParticipantExchangeVisitor.ParticipantId, participantExchangeVisitor, typeof(ParticipantExchangeVisitor));
            throwSecurityViolationIfParticipantDoesNotBelongToProject(updatedParticipantExchangeVisitor.Audit.User.Id, updatedParticipantExchangeVisitor.ProjectId, participantExchangeVisitor.Participant);
            DoUpdate(participantExchangeVisitor, updatedParticipantExchangeVisitor);
        }