Example #1
0
 public function Remove()
 {
     $this->_response()->asJSON();
     try {
         Product::sremove($this->_request()->g('id'));
         return array('success' => true);
     } catch (Exception $e) {
         return array('error' => $e->getMessage());
     }
 }