public IActionResult Get(int id) { var message = _userMessageRepository.GetById(id); if (message == null) { return(NotFound()); } return(Ok(message)); }