Exemple #1
0
        public async Task <FileResult> Download(Guid documentId)
        {
            var dbContext = new DashDocsContext();
            var document  = await dbContext.Documents.SingleAsync(d => d.Id == documentId);

            var blobStorageService = new BlobStorageService();
            var content            = await blobStorageService.DownloadDocument(documentId, DashDocsClaims.CustomerId);

            return(File(content.Item1, System.Net.Mime.MediaTypeNames.Application.Octet, content.Item2));
        }
Exemple #2
0
        public async Task <FileResult> Download(Guid documentId)
        {
            Guid customerId = Guid.Parse("82CEAD1F-E3FA-4DAB-BFFA-276845FB7E72");

            var dbContext = new DashDocsContext();
            var document  = await dbContext.Documents.SingleAsync(d => d.Id == documentId);

            var blobStorageService = new BlobStorageService();
            var content            = await blobStorageService.DownloadDocument(documentId, customerId);

            return(File(content.Item1, System.Net.Mime.MediaTypeNames.Application.Octet, content.Item2));
        }