...
This commit is contained in:
@@ -440,10 +440,10 @@ namespace Back.Controllers
|
||||
{
|
||||
return Ok(await _servTaxPayer.GetPatterns());
|
||||
}
|
||||
[HttpGet("GetReport")]
|
||||
public IActionResult GetReport()
|
||||
[HttpGet("GetReport/{InvoiceID}")]
|
||||
public IActionResult GetReport(int InvoiceID)
|
||||
{
|
||||
var reportPath = $"Reports\\TwoSimpleLists.mrt";
|
||||
var reportPath = $"Reports\\invoice.mrt";
|
||||
var bytes = System.IO.File.ReadAllBytes(reportPath);
|
||||
return new FileContentResult(bytes, "application/xml");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user