// POST: Cadastro/Responsavel/Novo public ActionResult Index(string filtro) { ViewData["filtro"] = filtro; List <ResponsavelView> lista = ResponsavelExecute.BuscarResponsaveis(filtro); return(View("Index", lista)); }
// POST: Cadastro/Responsavel/Excluir public ActionResult Excluir(ResponsavelView responsavel) { bool result = ResponsavelExecute.ExcluirResponsavel(responsavel, User.Identity.Name.ToString(), DateTime.Now); return(RedirectToAction("Index")); }
// GET: Cadastro/Responsavel/Excluir public ActionResult Excluir(Guid Id) { ResponsavelView item = ResponsavelExecute.CarregarResponsavel(Id); return(View("Excluir", item)); }
// POST: Cadastro/Responsavel/Novo public ActionResult Novo(ResponsavelView responsavel) { responsavel = ResponsavelExecute.CriarNovoResponsavel(responsavel, User.Identity.Name.ToString(), DateTime.Now); return(RedirectToAction("Index")); }
// GET: Cadastro/Responsavel public ActionResult Index() { List <ResponsavelView> lista = ResponsavelExecute.ListarTodosOsResponsaveis(); return(View(lista)); }