//public ActionResult Search(string keyword) //{ // var client = repo.FindName(keyword); // return View("Index", client); //} //public ActionResult Filter(客戶聯絡人 客戶聯絡人) //{ // var client = repo.GetPosition(客戶聯絡人.職稱); // return View("Index", client); //} public IEnumerable <SelectListItem> GetPositionSelect() { List <SelectListItem> items = new List <SelectListItem>(); foreach (var category in repo.FindPosition()) { items.Add(new SelectListItem() { Text = category, Value = category }); } return(items); }