public IActionResult Put(int id, [FromBody] Word word)
        {
            if (word == null)
            {
                return(BadRequest("Word does not exist!"));
            }

            Word wordToUpdate = dataRepository.GetById(id);

            if (wordToUpdate == null)
            {
                return(NotFound("The word record could not be found!"));
            }

            dataRepository.Update(wordToUpdate, word);
            return(NoContent());
        }