Exemplo n.º 1
0
 public ActionResult AtividadeIndex()
 {
     using (AtividadeDAL dal = new AtividadeDAL())
     {
         return(View(dal.ReadAll()));
     }
 }
 public ActionResult PaginaInicial()
 {
     using (AtividadeDAL dal = new AtividadeDAL())
     {
         return(View(dal.ReadAll()));
     }
 }
Exemplo n.º 3
0
        public ActionResult AtividadeUpdate(int id)
        {
            using (ConferenteDAL dalC = new ConferenteDAL())
                using (EventoDAL dalE = new EventoDAL())
                    using (TipoDAL dalT = new TipoDAL())
                        using (AtividadeDAL dalA = new AtividadeDAL())
                        {
                            ViewBag.Tipos = dalT.Read();

                            ViewBag.Eventos = dalE.ReadAll();

                            ViewBag.Conferentes = dalC.ReadAll();

                            return(View(dalA.ReadAll()));
                        }
        }