public JsonResult ConfirmarPago(List <string> IDs)
        {
            Factura factura = new Factura();

            factura.FacturaDetalle = new List <FacturaDetalle>();

            try
            {
                foreach (string id in IDs)
                {
                    PagareViewModel pagare = InscripcionRepository.getPagareById(id);
                    factura.FacturaDetalle.Add(new FacturaDetalle
                    {
                        PagareID     = Convert.ToInt64(id),
                        Descripcion  = pagare.Descripcion,
                        Monto        = pagare.Monto,
                        MontoDecimal = pagare.MontoDecimal
                    });
                }

                factura.MontoTotalDecimal = factura.FacturaDetalle.Sum(x => x.MontoDecimal);
                factura.MontoTotal        = factura.MontoTotalDecimal.ToString("#,###").Replace(",", ".");

                Session["FacturaConfirmar"] = factura;
            }
            catch (Exception ex)
            {
                return(Json("ERROR"));
            }

            return(Json("OK"));
        }