Exemple #1
0
        public FileContentResult GetDocument(int docId)
        {
            DocumentViewModel model = new DocumentViewModel();

            model = model.GetDocument(docId);

            byte[] byteInfo  = model.FileUpload;
            string fileName  = model.FileName;
            string fileType  = model.Extension.ToLower();
            string mediaType = model.Media;

            return(File(byteInfo, mediaType, fileName));
        }