I am trying to add success message in my controller but messages are showing.
controller class, I have extended
\Magento\Framework\App\Action\Action class and using below code to add success message:
$this->messageManager->addSuccess( __('Thanks for contacting us with your comments and questions. We\'ll respond to you very soon.') );