コード例 #1
0
        // POST: Cadastro/TipoServico/Novo
        public ActionResult Novo(TipoServicoView TipoServico)
        {
            TipoServico.Ativo = true;
            TipoServico       = TipoServicoExecute.CriarNovoTipoServico(TipoServico);

            return(RedirectToAction("Index"));
        }
コード例 #2
0
        // POST: Cadastro/TipoServico/Novo
        public ActionResult Index(string filtro)
        {
            ViewData["filtro"] = filtro;
            List <TipoServicoView> lista = TipoServicoExecute.BuscarTipoServicos(filtro);

            return(View("Index", lista));
        }
コード例 #3
0
        // POST: Cadastro/TipoServico/Excluir
        public ActionResult Excluir(TipoServicoView TipoServico)
        {
            bool result = TipoServicoExecute.ExcluirTipoServico(TipoServico);

            return(RedirectToAction("Index"));
        }
コード例 #4
0
        // GET: Cadastro/TipoServico/Excluir
        public ActionResult Excluir(Guid Id)
        {
            TipoServicoView item = TipoServicoExecute.CarregarTipoServico(Id);

            return(View("Excluir", item));
        }
コード例 #5
0
 // POST: Cadastro/TipoServico/Editar
 public ActionResult Editar(TipoServicoView TipoServico)
 {
     TipoServico = TipoServicoExecute.EditarTipoServico(TipoServico);
     return(RedirectToAction("Index"));
 }
コード例 #6
0
        // GET: Cadastro/TipoServico
        public ActionResult Index()
        {
            List <TipoServicoView> lista = TipoServicoExecute.ListarTodosOsTipoServicos();

            return(View(lista));
        }