// GET: CustomerContactPerson/Details/5 public ActionResult Details(int?id) { if (id == null) { return(new HttpStatusCodeResult(HttpStatusCode.BadRequest)); } 客戶聯絡人 result = customerContactPerson.GetSingle(x => x.Id == id); if (result == null) { return(HttpNotFound()); } return(View(result)); }