Exemple #1
0
        // POST: Cadastro/TipoDePagamento/Novo
        public ActionResult Index(string filtro)
        {
            ViewData["filtro"] = filtro;
            List <TipoDePagamentoView> lista = TipoDePagamentoExecute.BuscarTiposDePagamentos(filtro);

            return(View("Index", lista));
        }
Exemple #2
0
        // POST: Cadastro/Bloco/Excluir
        public ActionResult Excluir(TipoDePagamentoView tipoDePagamento)
        {
            bool result = TipoDePagamentoExecute.ExcluirTipoDePagamento(tipoDePagamento, User.Identity.Name.ToString(), DateTime.Now);

            return(RedirectToAction("Index"));
        }
Exemple #3
0
        // GET: Cadastro/Bloco/Excluir
        public ActionResult Excluir(Guid Id)
        {
            TipoDePagamentoView item = TipoDePagamentoExecute.CarregarTipoDePagamento(Id);

            return(View("Excluir", item));
        }
Exemple #4
0
 // POST: Cadastro/TipoDePagamento/Novo
 public ActionResult Novo(TipoDePagamentoView tipoDePagamento)
 {
     tipoDePagamento = TipoDePagamentoExecute.CriarNovoTipoDePagamento(tipoDePagamento,
                                                                       User.Identity.Name.ToString(), DateTime.Now);
     return(RedirectToAction("Index"));
 }
Exemple #5
0
        // GET: Cadastro/TipoDePagamento
        public ActionResult Index()
        {
            List <TipoDePagamentoView> lista = TipoDePagamentoExecute.ListarTodosOsTiposDePagamentos();

            return(View(lista));
        }