예제 #1
0
        private async Task <string> UploadArticleEntry(EntryContent entryContent, string content, BlobStorageContainer storageContainer)
        {
            if (entryContent == null)
            {
                throw new ArgumentNullException(nameof(entryContent));
            }

            var contentBase64 = StringUtilities.ToBase64(content);

            return(await _blobstore.PersistArticleEntryAsync(storageContainer, entryContent.ArticleId, entryContent.Id, contentBase64));
        }