예제 #1
0
        public ActionResult Index(int?page, long siteId = 1, long menuId = 2000)
        {
            ViewBag.SiteID = siteId;
            ViewBag.MenuID = menuId;

            List <AdvertisersModel> list = new List <AdvertisersModel>();

            Pagination pagination = new Pagination
            {
                PageIndex = page ?? 1,
                PageSize  = WebInfo.PageSize
            };

            int totalRecord;

            list = AdvertisementDAO.GetAdvertisers(pagination.PageSize, pagination.PageIndex, siteId, out totalRecord);
            pagination.TotalRecord = totalRecord;
            ViewBag.Pagination     = pagination;

            return(View(list));
        }