Example #1
0
        public ActionResult Editar(int id)
        {
            var pagamento = new Business.PagamentosBusiness().GetAndRelation(id);

            Combos();
            return(View(pagamento));
        }
Example #2
0
        public PartialViewResult _TableListarPagamentos(int?id = null)
        {
            var listaDePagamentoss = new List <Pagamentos>();

            if (id.HasValue)
            {
                listaDePagamentoss.Add(new Business.PagamentosBusiness().GetPagamentos((int)id));
            }
            else
            {
                listaDePagamentoss = new Business.PagamentosBusiness().ListPagamentos();
            }

            return(PartialView(listaDePagamentoss));
        }