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); }
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); }