//private 客戶資料Entities db = new 客戶資料Entities(); // GET: customerbank public ActionResult Index(string qname) { if (string.IsNullOrWhiteSpace(qname)) { return(View("Index", repo.All().ToList())); } else { return(View("Index", repo.搜尋名稱(qname))); } }