//se o pagamento for bem sucedido public ActionResult sucessopg(int id) { if (Session["idVendedor"] != null) { PagamentoDAO objPD = new PagamentoDAO(); Pagamento objP = objPD.GetPagamento(id); ParcelasDAO objPrD = new ParcelasDAO(); Parcelas objPr = objPrD.GetParcelas(id); return(View(Tuple.Create(objPr, objP))); } else { return(RedirectToAction("Index")); } }