Example #1
0
        // POST: Cadastro/Responsavel/Novo
        public ActionResult Index(string filtro)
        {
            ViewData["filtro"] = filtro;
            List <ResponsavelView> lista = ResponsavelExecute.BuscarResponsaveis(filtro);

            return(View("Index", lista));
        }
Example #2
0
        // POST: Cadastro/Responsavel/Excluir
        public ActionResult Excluir(ResponsavelView responsavel)
        {
            bool result = ResponsavelExecute.ExcluirResponsavel(responsavel, User.Identity.Name.ToString(), DateTime.Now);

            return(RedirectToAction("Index"));
        }
Example #3
0
        // GET: Cadastro/Responsavel/Excluir
        public ActionResult Excluir(Guid Id)
        {
            ResponsavelView item = ResponsavelExecute.CarregarResponsavel(Id);

            return(View("Excluir", item));
        }
Example #4
0
 // POST: Cadastro/Responsavel/Novo
 public ActionResult Novo(ResponsavelView responsavel)
 {
     responsavel = ResponsavelExecute.CriarNovoResponsavel(responsavel,
                                                           User.Identity.Name.ToString(), DateTime.Now);
     return(RedirectToAction("Index"));
 }
Example #5
0
        // GET: Cadastro/Responsavel
        public ActionResult Index()
        {
            List <ResponsavelView> lista = ResponsavelExecute.ListarTodosOsResponsaveis();

            return(View(lista));
        }