public function getQuestion()
 {
     $id = $this->getRequest()->getParam('id');
     if ($id) {
         return Acaldeira_Mercadolivre_Helper_QuestionData::getQuestion(null, $id);
     }
 }
 public function answerAction()
 {
     if ($this->getRequest()->getPost()) {
         $postData = $this->getRequest()->getPost();
         $result = Acaldeira_Mercadolivre_Helper_QuestionData::saveAnswer(array('question_id' => $postData['question_id'], 'text' => $postData['answer']));
         if (isset($result['body']->id)) {
             Mage::getSingleton('adminhtml/session')->addSuccess("Saved");
             $question = Mage::getModel('mercadolivre/question')->load($postData['question_id'], 'ml_id');
             $question->setStatus("ANSWERED");
             $question->save();
         } else {
             Mage::getSingleton('adminhtml/session')->addError($result['body']->message);
         }
         $this->_redirect('*/*/index');
     }
 }