示例#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);
        }
        // GET: Admin/ADTuyenDuong
        public ActionResult Index(int page = 1, int pageSize = 5)
        {
            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 TUYEN_DUONG_DAO();
            var list = dao.list();

            return(View(list));
        }