Exemple #1
0
        public FileResult SubmitReport()
        {
            //Test Git
            var    service   = new CAService();
            string fileName  = service.SubmitReport();
            string directory = ReportService.GetReportDirectory(fileName, "CA");
            var    file      = ReportService.ReadAllBytes(directory);

            Response.AppendHeader("Content-Disposition", "inline; filename=" + fileName);
            return(File(file, "application/pdf"));
            //return Json(new { content = file , contentType = "application/pdf" , fileName } , JsonRequestBehavior.AllowGet);
        }
Exemple #2
0
        public void SubmitReport()
        {
            var service = new CAService();

            service.SubmitReport();
        }