// GET: Test public FileResult Bodacc() { var file = DocGenerator.GenerateBodaccReport("414819409"); return(File(file.FileStream, MimeMapping.GetMimeMapping("pdf"))); //BodaccReader.BodaccReader br = new BodaccReader.BodaccReader(); //var elts = br.GetBodacc("414819409"); //return new ContentResult() { Content = JsonConvert.SerializeObject(elts), ContentType = "application/json" }; }
public FileResult GetBodaccReport(string siret) { var file = DocGenerator.GenerateBodaccReport(siret); return(File(file.FileStream, "application/pdf", "RapportBodacc-" + siret + ".pdf")); }