public void ValidarBDCCVeiculo(Veiculo veiculo) { using (var ws = new WsBDCC.WsSincrono()) { var response = ws.ConsultaRenavam(veiculo.Renavam ?? string.Empty, 0); if (response != null) { if (BDCCHelpers.ErroBDCC(response.CodigoRetorno)) { throw new Exception(response.DescricaoRetorno); } } } }
public void ValidarBDCCMotorista(Motorista motorista) { using (var ws = new WsBDCC.WsSincrono()) { var response = ws.ConsultaCpf(motorista.CPF.RemoverCaracteresEspeciais(), 0, "?", 0); if (response != null) { if (BDCCHelpers.ErroBDCC(response.CodigoRetorno)) { throw new Exception(response.DescricaoRetorno); } } } }