Ejemplo n.º 1
0
        /// <summary>
        /// Attachment upload
        /// </summary>
        public async Task AttachmentUpd(string fileName, MemoryStream fileContent, string containerName,
                                        string objectGuid, string serviceGroupGid, string userGuid)
        {
            fileContent.Position = 0;
            var uploadedFile = new AttachmentEntity
            {
                container          = containerName,
                name               = fileName,
                content            = fileContent,
                object_guid        = objectGuid,
                service_group_guid = serviceGroupGid,
                user_guid          = userGuid
            };

            var resultFile = await AzureStorage.UploadFileAzureStorage(uploadedFile);

            await AttachmentInfo.AttachmentUpd(resultFile);
        }