public IActionResult GetWordById(int id) { Word word = dataRepository.GetById(id); if (word == null) { return(NotFound("The word record could not be found!")); } return(Ok(word)); }