// GET: BL public ActionResult viewBL() { DAO.BLDAO dao = new DAO.BLDAO(); IList <Models.BL> bl = dao.Lista(); ViewBag.bl = bl; return(View()); }
public ActionResult Deletar(Models.BL bl) { DAO.BLDAO dao = new DAO.BLDAO(); dao.Deletar(bl); return(RedirectToAction("/viewBl")); }
public ActionResult Editar(Models.BL bl) { DAO.BLDAO dao = new DAO.BLDAO(); dao.Atualiza(bl); return(RedirectToAction("/viewBl")); }
public ActionResult Adiciona(Models.BL bl) { DAO.BLDAO dao = new DAO.BLDAO(); dao.Adiciona(bl); return(RedirectToAction("/viewBl")); }