How do I save the result of two variables?

0

I am learning mvc, I want to work with a payment gateway and I have the payment response variable and also a discount code is not saving the code in the database.

if (respuesta.RsptVisa == "1" || !configuracion.PAGO_VISA_VALIDADO.Value)
        {
            respuesta.RsptVisa = "1";
            ViewBag.Respuesta = respuesta;

            string _email = "", _asunto = "", _mensaje = "", _nombreCompleto = "";
            using (EmailProvider provider = EmailFactory.GetEmailProvider(
                   EmailFactory.Providers.Default, configEnvioDeCorreo))
            {
                _nombreCompleto = inscripcion.Participante.ApellidoPaterno + ", " + inscripcion.Participante.Nombres;
                _email = inscripcion.Participante.Email;
                _mensaje = HttpUtility.HtmlDecode(
                    General.RenderPartialViewToString(
                        this
                        , "~/Views/Inscripcion/CorreoConfirmacion.cshtml"
                        , ViewBag));

                _asunto = inscripcion.Evento.Nombre + " " + _nombreCompleto;


                //Como se debe Guardar el resultado del pago visa, codigo promocional



                provider.AgregarDireccion(TipoDirecciones.To, _email);
                provider.Enviar(
                    _mensaje
                    , _asunto
                    , true
                    , System.Net.Mail.MailPriority.High);
            }
        }


// codigo promocional 

public JsonResult RegistrarCodigoPromocional(string codigopromocional, int idevento)
    
asked by Wilton 12.07.2018 в 18:14
source

0 answers