public void ConfirmacaoDeCompra(string nomeCliente, string emailCliente, string senhaVenda, string tabelaItensComprados, string formasPagamento, string tipoTaxa, string dataVenda, string atendente, string canal, string detalhesTaxaEntrega) { try { ServicoEmail.EnviarVendaAprovada(nomeCliente, emailCliente, senhaVenda, tabelaItensComprados, atendente, dataVenda, canal, formasPagamento, detalhesTaxaEntrega, tipoTaxa); } catch (Exception ex) { throw new Exception("ConfirmacaoDeCompra - Falha ao enviar e-mail: " + ex); } }
public void EnviarConfirmacaoCompra(int clienteID, EstruturaTransacoesDetalhes venda, bool debugMail = false) { try { var email = BuscaEmailCliente(clienteID); if (!string.IsNullOrEmpty(email[0])) { string pedido = MontarDetalhes(venda); string entrega = MontarProcedimento(venda); ServicoEmail.EnviarVendaAprovada(email[1], email[0], venda.Senha, pedido, venda.Atendente, venda.DataVenda.ToString(), venda.Canal, venda.FormasPagamento(), entrega, venda.TaxaEntrega); } } catch (Exception ex) { throw new Exception("EnviarConfirmacaoCompra : " + ex.Message); } }