示例#1
0
 public ActionResult ConferenteIndex()
 {
     using (ConferenteDAL dal = new ConferenteDAL())
     {
         return(View(dal.ReadAll()));
     }
 }
示例#2
0
        public ActionResult ConferenteUpdate(Conferente conferentes)
        {
            using (ConferenteDAL dal = new ConferenteDAL())
            {
                dal.Update(conferentes);

                return(RedirectToAction("ConferenteIndex"));
            }
        }
示例#3
0
        public ActionResult ConferenteCreate(Conferente conferentes)
        {
            using (ConferenteDAL dal = new ConferenteDAL())
            {
                dal.Create(conferentes);

                return(Redirect("/Atividade/AtividadeCreate"));
            }
        }
示例#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());
        }