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