I'm getting IEnumerable<object>
list to Create_Brochure
controller method as follows
So I want to keep this object list and reuse in Create_Brochure_PDF
controller method
So I added following lines to create session
in Create_Brochure
controller method
IEnumerable<ProductsPropertiesVM> newmodel = model;
Session["TemplateData"] = newmodel;
to Use that session in Create_Brochure_PDF
controller method I added following lines to Create_Brochure_PDF
controller method
IEnumerable<ProductsPropertiesVM> newmodel = Session["TemplateData"] as IEnumerable<ProductsPropertiesVM>;
but I'm getting null
for this newmodel in Create_Brochure_PDF
controller method
I need to know how can I define a Session for IEnumerable<object>
list and reuse it in another method correctly.