public function deleteAction()
 {
     if ($this->getPostData()) {
         $post = $this->getPostData();
         if ($post['token'] == $this->app['session']->get('token')) {
             Product::deleteProduct($post['id']);
             $this->app['session']->remove('token');
             return $this->redirect('viewproduct');
         }
     }
     return false;
 }