public ActionResult Create([Bind(Include = "Id,客戶Id,職稱,姓名,Email,手機,電話")] 客戶聯絡人 data) { if (ModelState.IsValid) { customerContactPerson.Create(data); customerContactPerson.Commit(); return(RedirectToAction("Index")); } ViewBag.客戶Id = new SelectList(customer.GetAll(), "Id", "客戶名稱", data.客戶Id); return(View(data)); }