예제 #1
0
        public ActionResult TT_TS(string maloai, int page = 1, int pagesize = 3)
        {
            ViewBag.Maloai = maloai;
            var dao = new TT_TS();
            var res = dao.ListAllPaging(maloai, page, pagesize);

            return(View(res));
        }
예제 #2
0
        public ActionResult TuyenSinh1(string mabaidang)
        {
            var dao = new TT_TS();
            var res = dao.baidang_nd(mabaidang);

            ViewBag.List = dao.baidang_file(mabaidang);
            if (res == null)
            {
                return(View(new BaidangViewModel()));
            }
            return(View(res));
        }