Exemple #1
0
        public Worker.ValidateResult Save()
        {
            var b = new Worker.Books.Chapter.Create
            {
                ParentDocumentId = this.ParentDocumentId,
                Title            = this.Title,
                Priority         = this.Priority
            };

            var result = b.Save();

            if (result.Result)
            {
                this.DocumentId = b.DocumentId;
            }

            return(result);
        }
        public Worker.ValidateResult Save()
        {
            var currentDocument = new Worker.Books.Chapter.Details(this.CurrentDocumentId);

            var b = new Worker.Books.Chapter.Create
            {
                ParentDocumentId = currentDocument.ParentDocumentId,
                Title            = this.Title,
                Priority         = this.Priority,
                CurrentDocumentIdToSetFinished = this.CurrentDocumentIdToSetFinished,
            };

            var result = b.Save();

            if (result.Result)
            {
                this.DocumentId = b.DocumentId;
            }

            return(result);
        }