// GET: 客戶銀行資訊 public ActionResult Index(string searchString) { var 客戶銀行資訊 = repoBank.All(); if (!String.IsNullOrEmpty(searchString)) { 客戶銀行資訊 = repoBank.Get關鍵字(searchString); } return(View(客戶銀行資訊)); }