public function execute()
{
$post_id = $this->getRequest()->getParam('post_id', $this->getRequest()->getParam('id', false));
/** @var \Ashsmith\Blog\Helper\Post $post_helper */
$post_helper = $this->_objectManager->get('Ashsmith\\Blog\\Helper\\Post');
$result_page = $post_helper->prepareResultPost($this, $post_id);
if (!$result_page) {
$resultForward = $this->resultForwardFactory->create();
return $resultForward->forward('noroute');
}
return $result_page;
}