public ActionResult Search(string keyword) { if (string.IsNullOrEmpty(keyword)) { return(View("Index", customerContactPerson.GetAll())); } if (customerContactPerson.Exists(x => x.姓名.Contains(keyword)) == false) { return(HttpNotFound()); } IEnumerable <客戶聯絡人> result = customerContactPerson.Query(x => x.姓名.Contains(keyword)); return(View("Index", result)); }