I am working with C# in a .NET Core MVC web application and I would like to keep a persistent list of key/value pairs between the controller and views throughout multiple calls back to the controller accumulating the pairs as I go along. Is there a reasonably simple way to do this? I have tried looking into using the TempData[] technique, but this seems to become excessively complex when working with a list or collection of paired data.
I'd appreciate some ideas.
Thanks.