public ActionResult Create([Bind(Include = "Id,客戶Id,銀行名稱,銀行代碼,分行代碼,帳戶名稱,帳戶號碼")] 客戶銀行資訊 data) { if (ModelState.IsValid) { customerBank.Create(data); customerBank.Commit(); return(RedirectToAction("Index")); } ViewBag.客戶Id = new SelectList(customer.GetAll(), "Id", "客戶名稱", data.客戶Id); return(View(data)); }