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