Ejemplo n.º 1
0
        public async Task <ActionResult> DrawingPdf(string projectName, string hash, int index, string token = null)
        {
            string localFileName = await _userResolver.EnsureLocalFile(projectName, LocalName.DrawingPdf(index), hash);

            return(new PhysicalFileResult(localFileName, "application/pdf")
            {
                FileDownloadName = LocalName.DrawingPdf(index)
            });
        }