// GET: 客戶銀行資訊 public ActionResult Index(string KeyWord) { var 客戶銀行資訊 = oRepository.GetAll(KeyWord).Include(客 => 客.客戶資料); return(View(客戶銀行資訊.ToList())); }
// GET: CustomerBank public ActionResult Index() { var result = customerBank.GetAll().Include(x => x.客戶資料); return(View(result)); }