public List <SearchAll> FetchItemNames() { //public List<BusinessLogicAutoRaksha.ServiceClasses.Area> FetchAreaNames(string areaString) var searchObj = new SearchAll(); var fetchItems = (List <SearchAll>)null; // var items = (List<SearchAll>)null; fetchItems = searchObj.GetSearchList();//items.Where(str => str.SearchString.ToLower().Contains(prefixText.ToLower())); // var filteredAreas= fetchAreas.Where(m => m.AreaName.ToLower().Contains(areaString.ToLower())); return(fetchItems.ToList()); }
public List <SearchAll> GetModels(string model) { // Data access here to retrieve data for autocomplete box then convert to list var searchObj = new SearchAll(); var fetchItems = (List <SearchAll>)null; fetchItems = searchObj.GetSearchList(); // var filteredAreas= fetchAreas.Where(m => m.AreaName.ToLower().Contains(areaString.ToLower())); List <SearchAll> List = fetchItems.ToList(); // or however you get the data into list format return(List); }