Example #1
0
        public async Task <IActionResult> FindWords(string term)
        {
            var searchResult = await _repo.FindWords(term);

            var vocabolaryToReturn = _mapper.Map <IEnumerable <WordListDto> >(searchResult);

            return(Ok(vocabolaryToReturn));
        }