// GET: 客戶銀行資訊/Details/5 public ActionResult Details(int?id) { if (id == null) { return(new HttpStatusCodeResult(HttpStatusCode.BadRequest)); } 客戶銀行資訊 客戶銀行資訊 = repo.find(id.Value); if (客戶銀行資訊 == null) { return(HttpNotFound()); } return(View(客戶銀行資訊)); }