I'm trying to find a way to pass a TempData from a static method to another method but I'm having some issue finding the correct answer to this problem bellow, since I can't use a TempData in a static field..
public static XtraReport BuildReportObject(DailyEmployeeRecapSearchCriteria searchCriteria)
var resultsContainer = GetReportResults(searchCriteria)
TempData['"value"] = resultsContainer; I can't do this, since its a static field.
return SetDefaultsForReportObject(mainReport, .....
why I wanted to use a TempData so that I could use it into another method.
public FileResult ExportCsvFormat(string dataSource)
foreach (var x in (List<GroupBillingCustomerDetails>)TempData["GroupBillingdata"]) > Then here I can use my TempData ...