Click here to Skip to main content
15,896,278 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
pass list between actions in .net core controller. using tempdata gives error model not serializable

What I have tried:

Tempdata cannot serialize models error
Posted
Comments
Richard MacCutchan 7-Jul-18 3:21am    
Please edit your question and add some proper details; no one can guess what your code is doing.
malathi puttaiah 9-Jul-18 2:16am    
It was a list of objects fetched from the database to be passed between two actions in the controller. Tempdata is used to pass only simple data types. So I created the list in both the actions to avoid passing.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900