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()); } }
public void UpdateWord(WordDTO wordDTO) { var wordDC = MappingWord.MappingDTOtoDC(wordDTO); vocabularyClient.UpdateWord(wordDC); }
public bool AddWord(WordDTO wordDTO, int dictionaryId) { var wordDC = MappingWord.MappingDTOtoDC(wordDTO); return(vocabularyClient.AddWord(wordDC, dictionaryId)); }