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