Example #1
0
        public ActionResult Index(客戶資料VM search, int?page)
        {
            ViewBag.客戶分類 = repo.Get客戶分類下拉選單列表();
            var data = repo.Get客戶資料列表所有資料(search);

            int currentPageIndex = page.HasValue ? page.Value - 1 : 0;

            return(View(data.ToPagedList(currentPageIndex, PageSize)));
        }