public IHttpActionResult DownloadPakcingList([FromUri] string container, [FromUri] string operation) { if (operation == "UnloadingList") { var generator = new ExcelGenerator(@"D:\Template\Prelocation-Template.xlsx"); var fullPath = generator.GeneratePreallocatingReport(container); var downloader = new Downloader(); downloader.DownloadByFullPath(fullPath); } else if (operation == "Label") { var generator = new PDFGenerator(); generator.GenerateLabelPdf(container); } return(Ok()); }