// POST: Cadastro/TipoDePagamento/Novo public ActionResult Index(string filtro) { ViewData["filtro"] = filtro; List <TipoDePagamentoView> lista = TipoDePagamentoExecute.BuscarTiposDePagamentos(filtro); return(View("Index", lista)); }
// POST: Cadastro/Bloco/Excluir public ActionResult Excluir(TipoDePagamentoView tipoDePagamento) { bool result = TipoDePagamentoExecute.ExcluirTipoDePagamento(tipoDePagamento, User.Identity.Name.ToString(), DateTime.Now); return(RedirectToAction("Index")); }
// GET: Cadastro/Bloco/Excluir public ActionResult Excluir(Guid Id) { TipoDePagamentoView item = TipoDePagamentoExecute.CarregarTipoDePagamento(Id); return(View("Excluir", item)); }
// POST: Cadastro/TipoDePagamento/Novo public ActionResult Novo(TipoDePagamentoView tipoDePagamento) { tipoDePagamento = TipoDePagamentoExecute.CriarNovoTipoDePagamento(tipoDePagamento, User.Identity.Name.ToString(), DateTime.Now); return(RedirectToAction("Index")); }
// GET: Cadastro/TipoDePagamento public ActionResult Index() { List <TipoDePagamentoView> lista = TipoDePagamentoExecute.ListarTodosOsTiposDePagamentos(); return(View(lista)); }