protected function GenerateResponse() { try { $this->response = SucursalesController::Corte(isset($_POST['fecha_final']) ? $_POST['fecha_final'] : null, isset($_POST['id_sucursal']) ? $_POST['id_sucursal'] : null, isset($_POST['total_efectivo']) ? $_POST['total_efectivo'] : null); } catch (Exception $e) { //Logger::error($e); throw new ApiException($this->error_dispatcher->invalidDatabaseOperation($e->getMessage())); } }