我需要生成每個合作伙伴的AR的pdf副本,並且我試圖通過TempData將模型傳遞給另一個視圖,但它始終返回null。 下面是我的代碼如下。 public ActionResult GenerateARPDFs(string dateasof)
{
dateasof = "03-31-17";
var report = new ReportViewModel();
我正在調查存儲TempData在一個更好的地方。有一個walkthrough for how to do that with MongoDB,但用於存儲的密鑰(item.SessionIdentifier == controllerContext.HttpContext.Request.UserHostAddress,IP地址)顯然不起作用,因爲多個用戶/會話可以共享相同的公共IP。 使用IP作爲