从另一个控制器调用 Action 后在 ControllerContext 出现错误:-
var pdfBytes = new ViewAsPdf("MonthlyReport", GetOverAllSales)
{
PageWidth = 215.9,
PageHeight = 279.4,
PageMargins = new Rotativa.Options.Margins(4, 6, 4, 4)
}.BuildFile(ControllerContext);
var fileName = "MonthlySalesReport_" + DateTime.Now.Ticks + ".pdf";