Exemplo n.º 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);
        }
Exemplo n.º 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);
        }