public void InformarPedidosEntregueSkyhub() { try { foreach (PedidoProtheus item in objPedidosProtheusRep.Listar(6)) { try { ResultProcessing resultado = objOrderApp.PostDelivery(item.NumeroEntregaSkyhub.Trim()); if (resultado.Success == false) { objLogerroApp.GravarLogErro("Erro ao informar entrega de pedido: " + item.NumeroEntregaSkyhub, resultado.Message, ""); } else { objPedidosProtheusRep.AtualizaStatus(item.CodigoPedidoProtheus, 7); } } catch (Exception ex) { objLogerroApp.GravarLogErro("Informar entrega de produtos " + item.NumeroEntregaSkyhub, "Informar pedidos entregues skyhub", ex.Message); } } } catch (Exception ex) { objLogerroApp.GravarLogErro("Envio da informações de pedidos enviados Skyhub", "Envio da informações de pedidos enviados Skyhub", ex.Message); } }