Esempio n. 1
0
        public int FindWordInText(string textToFind, int atricleId)
        {
            Article    article          = articleDao.SelectById(atricleId);
            string     text             = article.Text;
            TextFinder finder           = new TextFinder();
            int        occurancesInText = finder.FindTextOccurances(textToFind, text);

            return(occurancesInText);
        }