Пример #1
0
 public IEnumerable <ListItem <int> > GetFilteredKeywords(ItrisKeywordCategory filterCategory)
 {
     return(this.associateRepo.GetFilteredKeywords(filterCategory));
 }
Пример #2
0
        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;
        }