public ICollection <WordDC> GetNotLearnedWords(int quantityWords, int dictionaryId)
 {
     try
     {
         List <WordDC> listWordsDC  = new List <WordDC>();
         var           listWordsDTO = _bll.GetNotLearnedWords(quantityWords, dictionaryId);
         listWordsDTO.ForEach(x => listWordsDC.Add(MappingWord.MappingDTOtoDC(x)));
         return(listWordsDC);
     }
     catch (Exception ex)
     {
         throw new FaultException(ex.ToString());
     }
 }
Example #2
0
        public void UpdateWord(WordDTO wordDTO)
        {
            var wordDC = MappingWord.MappingDTOtoDC(wordDTO);

            vocabularyClient.UpdateWord(wordDC);
        }
Example #3
0
        public bool AddWord(WordDTO wordDTO, int dictionaryId)
        {
            var wordDC = MappingWord.MappingDTOtoDC(wordDTO);

            return(vocabularyClient.AddWord(wordDC, dictionaryId));
        }