/// <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}"); } }