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); }
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); }