예제 #1
0
 public async Task <IEnumerable <WordModel> > Get(int languageId)
 {
     return((await _wordService.GetAllWordsBySpecificLanguageAsync(languageId)).Select(l => _mapper.ToApiModel(l)));
 }
예제 #2
0
 public WordModel GetWordById(int wordId)
 {
     return(_mapper.ToApiModel(_service.GetWordById(wordId)));
 }
예제 #3
0
 public async Task <WordModel> GetWordById(int wordId)
 {
     return(_mapper.ToApiModel(await _wordService.GetWordByIdAsync(wordId)));
 }