public function lists($partyId = null)
    {
        $params = [
            'id' => $partyId,
        ];

        return $this->parseJSON('get', [self::API_GET, $params]);
    }
public function lists($partyId = null)
    {
        $params = [
            'id' => $partyId,
        ];

        return $this->parseJSON('get', [self::API_GET, $params]);
    }
public function lists ( $ partyId = null ) { $ params = [ 'id' => $ partyId , ] ; return $ this -> parseJSON ( 'get' , [ self :: API_GET , $ params ] ) ; }
List all Departments.

@return array
List all Departments .