Example #1
0
        // GET: 客戶資料
        public ActionResult Index(string searchString, string sortKey = "Id", bool isDesc = false)
        {
            var customers = repo.GetCustomers(searchString);

            return(View(repo.OrderBy(customers, sortKey, isDesc).ToList()));
        }