}//IsPageExistsComposite

        public UpdatePageResponse UpdatePage(UpdatePageRequest request)
        {
            UpdatePageResponse response = new UpdatePageResponse();

            try
            {
                response.UpdatePageResult =
                    new ConfluenceAPIMetodusok().UpdateConfluencePage(
                        request.PageTitle
                        , request.PageId
                        , request.Content
                        , request.URL
                        , request.Username
                        , request.Password
                        , request.VersionNumber
                        );

                if (response.UpdatePageResult.FailedResponse == null)
                {
                    response.Result = new Ac4yProcessResult()
                    {
                        Code = Ac4yProcessResult.SUCCESS
                    };
                }
                else
                {
                    response.Result = new Ac4yProcessResult()
                    {
                        Code = Ac4yProcessResult.FAIL, Message = "Nem sikerült a frissítés!"
                    };
                }
            }
            catch (Exception exception)
            {
                response.Result = (new Ac4yProcessResult()
                {
                    Code = Ac4yProcessResult.FAIL, Message = exception.Message, Description = exception.StackTrace
                });
            }
            return(response);
        }//UpdatePage
        }//UploadAttachmentComposite

        public UpdateOrAddPageCompositeResponse UpdateOrAddPageComposite(UpdateOrAddPageCompositeRequest request)
        {
            UpdateOrAddPageCompositeResponse response = new UpdateOrAddPageCompositeResponse();

            try
            {
                IsPageExistsCompositeResponse isPageExistsCompositeResponse =
                    IsPageExistsComposite(new IsPageExistsCompositeRequest()
                {
                    PageTitle = request.PageTitle
                    ,
                    Password = request.Password
                    ,
                    Username = request.Username
                    ,
                    URL = request.URL
                    ,
                    SpaceKey = request.SpaceKey
                });

                if (isPageExistsCompositeResponse.Result.Success())
                {
                    UpdatePageResponse updatePageResponse =
                        UpdatePage(new UpdatePageRequest()
                    {
                        PageId = isPageExistsCompositeResponse.isPageExistsResult.SuccessResponse.Id.ToString()
                        ,
                        PageTitle = request.PageTitle
                        ,
                        Password = request.Password
                        ,
                        Username = request.Username
                        ,
                        URL = request.URL
                        ,
                        VersionNumber = (isPageExistsCompositeResponse.isPageExistsResult.SuccessResponse.Version.Number + 1).ToString()
                        , Content     = request.Content
                    });

                    response.UpdatePageResult = updatePageResponse.UpdatePageResult;

                    if (response.UpdatePageResult.FailedResponse == null)
                    {
                        response.Result = new Ac4yProcessResult()
                        {
                            Code = Ac4yProcessResult.SUCCESS
                        };
                    }
                    else
                    {
                        response.Result = new Ac4yProcessResult()
                        {
                            Code = Ac4yProcessResult.FAIL, Message = "Nem sikerült frissíteni az oldalt!"
                        };
                    }
                }
                else
                {
                    IsPageExistsCompositeResponse isPageExistsCompositeResponseParentPage =
                        IsPageExistsComposite(new IsPageExistsCompositeRequest()
                    {
                        PageTitle = request.ParentPageTitle
                        ,
                        Password = request.Password
                        ,
                        Username = request.Username
                        ,
                        URL = request.URL
                        ,
                        SpaceKey = request.SpaceKey
                    });

                    if (isPageExistsCompositeResponseParentPage.Result.Success())
                    {
                        AddNewPageResponse addNewPageResponse =
                            AddNewPage(new AddNewPageRequest()
                        {
                            Password = request.Password
                            ,
                            Username = request.Username
                            ,
                            URL = request.URL
                            ,
                            SpaceKey = request.SpaceKey
                            ,
                            ParentPageId = isPageExistsCompositeResponseParentPage.isPageExistsResult.SuccessResponse.Id.ToString()
                            ,
                            PageTitle = request.PageTitle
                            ,
                            Content = request.Content
                        });
                        response.AddNewPageResult = addNewPageResponse.AddNewPageResult;

                        if (response.AddNewPageResult.FailedResponse == null)
                        {
                            response.Result = new Ac4yProcessResult()
                            {
                                Code = Ac4yProcessResult.SUCCESS
                            };
                        }
                        else
                        {
                            response.Result = new Ac4yProcessResult()
                            {
                                Code = Ac4yProcessResult.FAIL, Message = "Nem sikerült az új oldalt létrehozni!"
                            };
                        }
                    }
                    else
                    {
                        response.Result = (new Ac4yProcessResult()
                        {
                            Code = Ac4yProcessResult.FAIL, Message = "Nincs oldal a szülőoldal névvel!"
                        });
                    }
                }
            }
            catch (Exception exception)
            {
                response.Result = (new Ac4yProcessResult()
                {
                    Code = Ac4yProcessResult.FAIL, Message = exception.Message, Description = exception.StackTrace
                });
            }
            return(response);
        }//AddNewPageComposite