public FileResult Get(string aInvoiceNo) { HttpContext.Response.ContentType = "application/pdf"; if (aInvoiceNo == "Test") { this.Reformat(); } return(Bl.DownloadInvoice(aInvoiceNo)); }