public ActionResult ExcluirSindico(int id) { SindicoController controller = new SindicoController(); var registro = controller.Buscar(id); return(View(registro)); }
public ActionResult ExcluirSindicoConfirmar(int id) { SindicoController controller = new SindicoController(); controller.Excluir(id); return(RedirectToAction("ListaSindico")); }
//---- Sindico public ActionResult ListaSindico() { //Instancia a controller de RN (SERVICE) SindicoController controller = new SindicoController(); List <Sindico> lst = controller.Listar(); return(View(lst)); }
public ActionResult InserirSindico(Sindico registro) { if (!ModelState.IsValid) { return(View(registro)); } SindicoController controller = new SindicoController(); controller.Inserir(registro); return(RedirectToAction("ListaSindico")); }