function actualizarSucursalSocio($idSocio, $idSucursal) { if (is_numeric($idSocio) and $idSocio > 0) { if (is_numeric($idSucursal) and $idSucursal > 0) { $socio = new Socio(); $response = $socio->actualizarSucursalSocio($idSocio, $idSucursal); } else { $response["success"] = 7; $response["message"] = 'El id de la sucursal debe ser un dato valido'; } } else { $response["success"] = 6; $response["message"] = 'El Id del socio debe ser un dato valido'; } return $response; }