예제 #1
0
        // GET: BL
        public ActionResult viewBL()
        {
            DAO.BLDAO         dao = new DAO.BLDAO();
            IList <Models.BL> bl  = dao.Lista();

            ViewBag.bl = bl;
            return(View());
        }
예제 #2
0
 public ActionResult Deletar(Models.BL bl)
 {
     DAO.BLDAO dao = new DAO.BLDAO();
     dao.Deletar(bl);
     return(RedirectToAction("/viewBl"));
 }
예제 #3
0
 public ActionResult Editar(Models.BL bl)
 {
     DAO.BLDAO dao = new DAO.BLDAO();
     dao.Atualiza(bl);
     return(RedirectToAction("/viewBl"));
 }
예제 #4
0
 public ActionResult Adiciona(Models.BL bl)
 {
     DAO.BLDAO dao = new DAO.BLDAO();
     dao.Adiciona(bl);
     return(RedirectToAction("/viewBl"));
 }