protected function GenerateResponse() { try { $this->response = AlmacenesController::BuscarTraspasoLote(isset($_GET['cancelado']) ? $_GET['cancelado'] : null, isset($_GET['completo']) ? $_GET['completo'] : null, isset($_GET['estado']) ? $_GET['estado'] : null, isset($_GET['id_almacen_envia']) ? $_GET['id_almacen_envia'] : null, isset($_GET['id_almacen_recibe']) ? $_GET['id_almacen_recibe'] : null); } catch (Exception $e) { //Logger::error($e); throw new ApiException($this->error_dispatcher->invalidDatabaseOperation($e->getMessage())); } }