public IEnumerable <ListItem <int> > GetFilteredKeywords(ItrisKeywordCategory filterCategory) { return(this.associateRepo.GetFilteredKeywords(filterCategory)); }
public IEnumerable<ListItem<int>> GetFilteredKeywords(ItrisKeywordCategory filterCategory) { var keywords = new List<ListItem<int>>(); foreach (Keyword keyword in this.ItrisDb.Keywords.Where(k => k.TYPE == (int)filterCategory)) { keywords.Add(ListItem.Create(keyword.DICT_ID, keyword.KEYWORD1)); } return keywords; }