Exemplo n.º 1
0
 public void ConfirmacaoDeCompra(string nomeCliente, string emailCliente, string senhaVenda, string tabelaItensComprados, string formasPagamento, string tipoTaxa, string dataVenda, string atendente, string canal, string detalhesTaxaEntrega)
 {
     try
     {
         ServicoEmailParalela.EnviarVendaAprovada(nomeCliente, emailCliente, senhaVenda, tabelaItensComprados, atendente, dataVenda, canal, formasPagamento, detalhesTaxaEntrega, tipoTaxa);
     }
     catch (Exception ex)
     {
         throw new Exception("ConfirmacaoDeCompra - Falha ao enviar e-mail: " + ex);
     }
 }
Exemplo n.º 2
0
        public void EnviarConfirmacaoCompra(int clienteID, EstruturaTransacoesDetalhes venda)
        {
            try
            {
                string[] email = cliente.BuscaEmail(clienteID);

                if (!string.IsNullOrEmpty(email[0]))
                {
                    string pedido  = MontarDetalhes(venda);
                    string entrega = MontarProcedimento(venda);
                    ServicoEmailParalela.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);
            }
        }