public ActionResult EventoIndex()
 {
     using (EventoDAL dal = new EventoDAL())
     {
         return(View(dal.ReadAll()));
     }
 }
Пример #2
0
        public ActionResult ComissaoCreate()
        {
            using (EventoDAL dal = new EventoDAL())
            {
                ViewBag.Eventos = dal.ReadAll();
            }

            return(View());
        }
Пример #3
0
        public ActionResult ComissaoUpdate(int id)
        {
            using (ComissaoDAL dalC = new ComissaoDAL())
                using (EventoDAL dalE = new EventoDAL())
                {
                    ViewBag.Eventos = dalE.ReadAll();

                    return(View(dalC.Read(id)));
                }
        }
Пример #4
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()));
                        }
        }
Пример #5
0
        public ActionResult AtividadeCreate()
        {
            using (EventoDAL dal = new EventoDAL())
            {
                ViewBag.Eventos = dal.ReadAll();
            }

            using (ConferenteDAL dal = new ConferenteDAL())
            {
                ViewBag.Conferentes = dal.ReadAll();
            }

            using (TipoDAL dal = new TipoDAL())
            {
                ViewBag.Tipos = dal.Read();
            }
            return(View());
        }
Пример #6
0
        public ActionResult Evento_UsuarioCreate()
        {
            using (EventoDAL dal = new EventoDAL())
            {
                ViewBag.Eventos = dal.ReadAll();
            }

            using (UsuarioDAL dal = new UsuarioDAL())
            {
                ViewBag.Usuarios = dal.ReadAll();
            }

            using (StatusDAL dal = new StatusDAL())
            {
                ViewBag.Status = dal.ReadAll();
            }

            return(View());
        }