Ejemplo n.º 1
0
        public void deleteTermMention(int termMentionId)
        {
            TermMention termMention = context.TermMentions.Find(termMentionId);

            context.TermMentions.Remove(termMention);
            context.SaveChanges();
        }
Ejemplo n.º 2
0
        private List <TermMention> SetTermMentions(List <string> termsList)
        {
            List <TermMention> termMentionList = new List <TermMention>();

            foreach (String t in termsList)
            {
                TermMention termMention = new TermMention(t, feedRepo.ReadFeedsForKeyWord(t).Count());
                termMentionList.Add(termMention);
            }
            return(termMentionList);
        }