// POST: Cadastro/TipoServico/Novo public ActionResult Novo(TipoServicoView TipoServico) { TipoServico.Ativo = true; TipoServico = TipoServicoExecute.CriarNovoTipoServico(TipoServico); return(RedirectToAction("Index")); }
// POST: Cadastro/TipoServico/Novo public ActionResult Index(string filtro) { ViewData["filtro"] = filtro; List <TipoServicoView> lista = TipoServicoExecute.BuscarTipoServicos(filtro); return(View("Index", lista)); }
// POST: Cadastro/TipoServico/Excluir public ActionResult Excluir(TipoServicoView TipoServico) { bool result = TipoServicoExecute.ExcluirTipoServico(TipoServico); return(RedirectToAction("Index")); }
// GET: Cadastro/TipoServico/Excluir public ActionResult Excluir(Guid Id) { TipoServicoView item = TipoServicoExecute.CarregarTipoServico(Id); return(View("Excluir", item)); }
// POST: Cadastro/TipoServico/Editar public ActionResult Editar(TipoServicoView TipoServico) { TipoServico = TipoServicoExecute.EditarTipoServico(TipoServico); return(RedirectToAction("Index")); }
// GET: Cadastro/TipoServico public ActionResult Index() { List <TipoServicoView> lista = TipoServicoExecute.ListarTodosOsTipoServicos(); return(View(lista)); }