// GET: 客戶資料 public ActionResult Index(string SortBy, string search, int PageNo = 1) { var data = repo.Get篩選後客戶資料(SortBy, search); ViewBag.search = search; ViewBag.SortBy = SortBy; ViewBag.PageNo = PageNo; return(View(data.ToPagedList(PageNo, 10))); }