public IActionResult Index(string thongbao, int?pagenumber)
        {
            //Thông báo
            if (thongbao != null)
            {
                ViewBag.ThongBao = thongbao;
            }
            //Trang
            pageNumber = pagenumber ?? 1;
            //Lists
            TrangQuangCaoBUS     trang = new TrangQuangCaoBUS();
            List <TrangQuangCao> list  = trang.GetTrangQuangCaos(pageNumber, pageSize);
            List <TrangQuangCao> tong  = trang.GetTrangQuangCaos();

            //ViewBag
            ViewBag.TongTrang    = TongTrang(tong);
            ViewBag.TrangHienTai = pageNumber;
            ViewBag.TrangThai    = "index";
            return(View(list));
        }
        public IActionResult Sort(string sortorder, int?pagenumber)
        {
            pageNumber = pagenumber ?? 1;
            ViTriQuangcaoBUS     vitri   = new ViTriQuangcaoBUS();
            TrangQuangCaoBUS     trang   = new TrangQuangCaoBUS();
            List <ViTriQuangcao> list    = vitri.Sort(sortorder, pageSize, pageNumber);
            List <ViTriQuangcao> tong    = vitri.Sort(sortorder);
            List <TrangQuangCao> listtqc = trang.GetTrangQuangCaos();

            ViewBag.TrangHienTai  = pageNumber;
            ViewBag.TrangQuangCao = listtqc;
            ViewBag.TongTrang     = TongTrang(tong);
            ViewBag.TrangThai     = "sort";
            ViewBag.Sort          = sortorder;
            return(View("Index", list));
        }