コード例 #1
0
        public ActionResult modalExcluirPagamento(int id)
        {
            var OPagamento = this.OTituloReceitaPagamentoBL.carregar(id);

            var ViewModel = new TituloReceitaExclusaoPagamentoForm();

            ViewModel.TituloReceitaPagamento = OPagamento;

            return(PartialView(ViewModel));
        }
コード例 #2
0
        public ActionResult salvarExclusaoPagamento(TituloReceitaExclusaoPagamentoForm ViewModel)
        {
            if (!ModelState.IsValid)
            {
                ViewModel.TituloReceitaPagamento = this.OTituloReceitaPagamentoBL.carregar(ViewModel.TituloReceitaPagamento.id);

                return(PartialView("modal-excluir-pagamento", ViewModel));
            }

            //this.OTituloReceitaPagamentoBL.excluirPagamento(ViewModel.TituloReceitaPagamento, User.id());

            this.Flash(UtilMessage.TYPE_MESSAGE_SUCCESS, "A exclusão do pagamento foi realizada com sucesso.");

            return(Json(new { error = false, message = "" }));
        }