public DataSetPessoaRegistroPerfil AdaptarMsgRegistroperfilToDataSetPessoaRegistroPerfilExclusao(string cod_pessoa, string codPerfil)
        {
            _log.TraceMethodStart();

            DataSetPessoaRegistroPerfil registroPerfil = new DataSetPessoaRegistroPerfil();

            registroPerfil.statuslinha = ConstantesInegracao.StatusLinhaCUC.Exclusao;

            if (!string.IsNullOrWhiteSpace(cod_pessoa))
            {
                registroPerfil.cod_pessoa = cod_pessoa;
            }

            if (!string.IsNullOrWhiteSpace(codPerfil))
            {
                registroPerfil.cod_perfil = codPerfil;
            }

            _log.TraceMethodEnd();

            return(registroPerfil);
        }
        public DataSetPessoaRegistroPerfil AdaptarMsgRegistroperfilToDataSetPessoaRegistroPerfil(MsgRegistroperfil msg, string statusLinha, IList <string> erros)
        {
            _log.TraceMethodStart();

            DataSetPessoaRegistroPerfil registroPerfil = new DataSetPessoaRegistroPerfil();

            registroPerfil.statuslinha = statusLinha;

            if (!string.IsNullOrWhiteSpace(msg.codigoPessoa))
            {
                registroPerfil.cod_pessoa = msg.codigoPessoa;
            }

            if (!string.IsNullOrWhiteSpace(msg.codigoPerfil))
            {
                registroPerfil.cod_perfil = msg.codigoPerfil;
            }

            _log.TraceMethodEnd();

            return(registroPerfil);
        }
        public MsgRegistroperfil AdaptarDataSetPessoaRegistroPerfilToMsgRegistroperfil(DataSetPessoaRegistroPerfil registroPerfil, IList <string> erros)
        {
            _log.TraceMethodStart();

            MsgRegistroperfil msg = new MsgRegistroperfil();

            if (!string.IsNullOrWhiteSpace(registroPerfil.cod_pessoa))
            {
                msg.codigoPessoa = registroPerfil.cod_pessoa;
            }

            if (!string.IsNullOrWhiteSpace(registroPerfil.cod_perfil))
            {
                msg.codigoPerfil = registroPerfil.cod_perfil;
            }

            _log.TraceMethodEnd();

            return(msg);
        }