예제 #1
0
        public List <WordDTO> GetNotLearnedWords(int quantityWords, int dictionaryId)
        {
            List <WordDTO> listWordsDTO = new List <WordDTO>();
            var            listWords    = _dal.GetNotLearnedWords(quantityWords, dictionaryId);

            listWords.ForEach(x => listWordsDTO.Add(MappingWord.MappingDMtoDTO(x)));
            return(listWordsDTO);
        }
예제 #2
0
        public List <WordDTO> GetWords(int dictionaryId)
        {
            List <WordDTO> listWordsDTO = new List <WordDTO>();
            var            listWords    = _dal.GetWords(dictionaryId);

            listWords.ForEach(x => listWordsDTO.Add(MappingWord.MappingDMtoDTO(x)));
            return(listWordsDTO);
        }