Ejemplo n.º 1
0
 protected function GenerateResponse()
 {
     try {
         $this->response = AlmacenesController::RecibirTraspasoLote(isset($_POST['id_traspaso']) ? $_POST['id_traspaso'] : null, isset($_POST['productos']) ? json_decode($_POST['productos']) : null);
     } catch (Exception $e) {
         //Logger::error($e);
         throw new ApiException($this->error_dispatcher->invalidDatabaseOperation($e->getMessage()));
     }
 }