コード例 #1
0
        /// <summary>
        /// Add Document and load added entry into Business Object
        /// </summary>
        /// <param name="documents"></param>
        public static void AddAndLoadEx(this IDocuments documents)
        {
            var documentEntryKey = documents.AddEx();

            if (!documents.GetByKey(documentEntryKey))
            {
                throw new Exception($"Could not load document with DocEntry {documentEntryKey}");
            }
        }