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); }
public void SubmitReport() { var service = new CAService(); service.SubmitReport(); }