protected function GenerateResponse() { try { $this->response = AlmacenesController::CancelarTraspasoLote(isset($_POST['id_traspaso']) ? $_POST['id_traspaso'] : null); } catch (Exception $e) { //Logger::error($e); throw new ApiException($this->error_dispatcher->invalidDatabaseOperation($e->getMessage())); } }