public async Task <IActionResult> AddWords(IFormFile wordListFile)
        {
            int numberAdded = 0;

            using (var stream = wordListFile.OpenReadStream())
            {
                numberAdded = await dictionaryService.AddWordsToDictionary(stream);
            }

            return(Content(numberAdded.ToString(), "text/plain"));
        }
 public async Task <IActionResult> AddWords([FromBody] AddWordsModel data)
 {
     return(Json(data: await _service.AddWordsToDictionary(GetUserId(), data.DictionaryId, data.Words)));
 }