コード例 #1
0
        public FileResult DownloadReport(Guid reportId)
        {
            var report = _conferencService.GetReport(reportId);

            byte[] data     = report.Content;
            string fileName = report.Title + ".doc";

            return(File(data, System.Net.Mime.MediaTypeNames.Application.Octet, fileName));
        }