コード例 #1
0
        public ActionResult TourAttachmentFile(int id)
        {
            var fileToRetrieve = db.TourAttachment.Find(id);
            var TourFile       = db.EmployeeTour.Find(fileToRetrieve.TourId);

            byte[] file = blobManager.DownloadBlobClient(TourFile.UserId.ToLower(), cmsMgr.GetFileTourDetail(fileToRetrieve.FileId).ToLower());

            return(File(file, fileToRetrieve.ContentType, fileToRetrieve.FileName));
        }