Esempio n. 1
0
        public ActionResult Detales(int tipoPagamentoID)
        {
            tipoPagamentoDB = new TipoDePagamentoRepositorio();
            TipoPagamento tipoPagamento = tipoPagamentoDB.GetTipoPagamento(tipoPagamentoID);

            return(View(tipoPagamento));
        }
Esempio n. 2
0
 public ActionResult Deletar(TipoPagamento tipoPagamento)
 {
     tipoPagamentoDB = new TipoDePagamentoRepositorio();
     if (tipoPagamentoDB.Deletar(tipoPagamento) == Sucesso)
     {
         return(RedirectToAction("Listar"));
     }
     return(View(tipoPagamento));
 }
Esempio n. 3
0
 public ActionResult Listar()
 {
     tipoPagamentoDB = new TipoDePagamentoRepositorio();
     return(View(tipoPagamentoDB.Listar()));
 }