//Display retrieval by search keyword public List <Retrieval> DisplaySearch(string searchWord) { List <Retrieval> retrievalList = EFBroker_Disbursement.GetPendingAndProgressRetrievalList(); List <Retrieval> searchList = new List <Retrieval>(); foreach (Retrieval i in retrievalList) { searchList = retrievalList.Where(x => x.RetrievedDate.Value.ToLongDateString().ToLower().Contains(searchWord.ToLower()) || x.RetrievalID.ToString().Contains(searchWord) || x.Employee.EmpName.ToLower().Contains(searchWord.ToLower()) || x.RetrievalStatus.ToLower().Contains(searchWord.ToLower())).ToList(); } return(searchList); }
//Get all Retrieval List public List <Retrieval> DisplayRetrievalList() { return(EFBroker_Disbursement.GetPendingAndProgressRetrievalList()); }