Ejemplo n.º 1
0
        public void setViewBag(long?selectedID = null)
        {
            var dao  = new TUYEN_DUONG_DAO();
            var dao1 = new XE_KHACH_DAO();

            ViewBag.MS_TUYEN = new SelectList(dao.list(), "MS_TUYEN", "MS_TUYEN", selectedID);
            ViewBag.BSXE     = new SelectList(dao1.list(), "MA_BSX", "MA_BSX", selectedID);
        }
Ejemplo n.º 2
0
        // GET: Admin/ADXeKhach
        public ActionResult Index()
        {
            if (Session["Ten_NV"] != null)
            {
                ViewBag.Ten_NV = Session["Ten_NV"].ToString();
            }
            if (Session["CHUCVU_NV"] != null)
            {
                ViewBag.CHUCVU_NV = Session["CHUCVU_NV"].ToString();
            }
            if (Session["Email_NV"] != null)
            {
                ViewBag.Email_NV = Session["Email_NV"].ToString();
            }
            var dao  = new XE_KHACH_DAO();
            var list = dao.list();

            return(View(list));
        }