Exemple #1
0
        public ActionResult xemtin(int id)
        {
            var dethilist = new DeThiDao().ListDeThiMoi();

            ViewBag.dethilist = dethilist;
            var tintuc = new TinTucDao();

            ViewBag.tintuc = tintuc.listtintucsapxep();
            return(View(db.TINTUCs.Find(id)));
        }
Exemple #2
0
        public ActionResult Index()
        {
            var dethilist = new DeThiDao().ListDeThiMoi();

            ViewBag.dethilist = dethilist;
            var dao = new ShowGiaoDienChinhDao();

            ViewBag.MenuChinh = dao.ListCapThi();
            ViewBag.MenuCon   = dao.ListMonThi();
            var thongbao = new ThongBaoDao();

            ViewBag.ListThongBao = thongbao.toList();
            var socau = new SoCauDao();

            ViewBag.socau = socau.toList();
            var thoigian = new ThoiGianDao();

            ViewBag.thoigian = thoigian.toList();
            var chuyennganh = new ChuyenNganhDao();

            ViewBag.chuyennganh = chuyennganh.toList();
            var dethi = new DeThiDao();

            ViewBag.dethi = dethi.toList();
            var dao0 = new MucDoDao();

            ViewBag.MucDoID = new SelectList(dao0.toList(), "IDMUCDO", "TENMUCDO");
            var dao1 = new MonThiDao();

            ViewBag.MonThiID = new SelectList(dao1.toList(), "IDMON", "TENMON");
            var dao2 = new ThoiGianDao();

            ViewBag.ThoiGianID = new SelectList(dao2.toList(), "IDTHOIGIAN", "THOIGIAN1");
            var dao3 = new SoCauDao();

            ViewBag.SoCauID = new SelectList(dao3.toList(), "IDSOCAU", "SOCAU1");
            var dao4 = new CapThiDao();

            ViewBag.CapThiID = new SelectList(dao4.toList(), "IDCAPTHI", "TENCAPTHI");

            var tintuc = new TinTucDao();

            ViewBag.tintuc    = tintuc.listtintucsapxep();
            ViewBag.tintuctop = tintuc.tintuctop1();

            return(View());
        }