public ActionResult ViewPlan(FlightPlan plan) { Response.AppendHeader("Content-Disposition", "inline; filename=FATW_AERODROME CHART_AD-01 _04 FEB 2016.pdf"); return(new FileContentResult(OperationProcessor.GetFlightPlan(Server.MapPath("~/App_Data/FATW_AERODROME CHART_AD-01 _04 FEB 2016.pdf")), "application/pdf")); }
public FileResult GetChart(int chart) { var selectedChart = OperationProcessor.GetFlightPlan(chart, HttpContext); return(new FileContentResult(selectedChart, "application/pdf")); }