示例#1
0
        public ActionResult Tin1(string mabaidang)
        {
            var model = new TT_SK();
            var res   = model.baidang_nd(mabaidang);

            ViewBag.List = model.baidang_file(mabaidang);
            return(View(res));
        }
示例#2
0
        public ActionResult TT_SK(string maloai, int page = 1, int pagesize = 3)
        {
            ViewBag.Maloai = maloai;
            var dao = new TT_SK();
            var res = dao.ListAllPaging(maloai, page, pagesize);

            if (res == null)
            {
                return(View(new BaidangViewModel()));
            }
            return(View(res));
        }