public ActionResult CadastrarAviso(Aviso obj) { AvisoDAO dao = new AvisoDAO(); dao.cadastra(obj); return(RedirectToAction("frmBuscaAviso")); }
public ActionResult AlteraAviso(Aviso obj) { AvisoDAO dao = new AvisoDAO(); dao.altera(obj); return(RedirectToAction("frmBuscaAviso")); }
public ActionResult frmBuscaAviso() { AvisoDAO avisoDAO = new AvisoDAO(); ViewBag.lstAviso = avisoDAO.busca(); return(View()); }