//[HttpPost]
        //[ValidateAntiForgeryToken]
        public ActionResult Resumo()
        {
            var pedidoModel = (PedidoViewModel)Session["Pedido"];

            if (pedidoModel == null)
            {
                return(RedirectToAction("Vazio", "Carrinho"));
            }

            var formaPagamento = _formaPagamentoApp.GetByIdTipoInteiro(pedidoModel.IdFormaDePagamento);

            if (formaPagamento != null)
            {
                ViewBag.FormaDePagamento = formaPagamento.Descricao;
            }


            //Carrinho carrinho = ObterCarrinho();
            //return PartialView(carrinho);
            return(View(pedidoModel));
        }
Exemple #2
0
        // GET: FormaDePagamento/Details/5
        public ActionResult Details(int id)
        {
            var FormaDePagamentoViewModel = _formaDePagamentoApp.GetByIdTipoInteiro(id);

            return(View(FormaDePagamentoViewModel));
        }