public ActionResult ConferenteIndex() { using (ConferenteDAL dal = new ConferenteDAL()) { return(View(dal.ReadAll())); } }
public ActionResult ConferenteUpdate(Conferente conferentes) { using (ConferenteDAL dal = new ConferenteDAL()) { dal.Update(conferentes); return(RedirectToAction("ConferenteIndex")); } }
public ActionResult ConferenteCreate(Conferente conferentes) { using (ConferenteDAL dal = new ConferenteDAL()) { dal.Create(conferentes); return(Redirect("/Atividade/AtividadeCreate")); } }
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())); } }
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()); }