Example #1
0
        public Exceptional ChangeCommentOnType(GraphDBType myGraphDBType, String myComment)
        {
            if (myGraphDBType == null)
                return new Exceptional<Boolean>(new Error_ArgumentNullOrEmpty("myGraphDBType"));

            if (String.IsNullOrEmpty(myComment))
                return new Exceptional<Boolean>(new Error_ArgumentNullOrEmpty("myComment"));

            myGraphDBType.SetComment(myComment);

            var flushExcept = FlushType(myGraphDBType);

            if (!flushExcept.Success())
            {
                return new Exceptional<Boolean>(true);
            }

            else
            {
                return new Exceptional<Boolean>(flushExcept);
            }
        }
Example #2
0
        public Exceptional ChangeCommentOnType(GraphDBType myGraphDBType, String myComment)
        {
            if (myGraphDBType == null)
                return new Exceptional<Boolean>(new Error_ArgumentNullOrEmpty("myGraphDBType"));

            if (String.IsNullOrEmpty(myComment))
                return new Exceptional<Boolean>(new Error_ArgumentNullOrEmpty("myComment"));

            myGraphDBType.SetComment(myComment);

            return new Exceptional<Boolean>(true);
        }