Hi i'm new in C# development, I want to store a List of objects in memory when I start a simple service in dotnet core with some dummy data and can be able to access them in the Controller.
List<Cat> cats = new List<Cat>
{
new Cat(){ Name = "Sylvester", Age=8 },
new Cat(){ Name = "Whiskers", Age=2 },
new Cat(){ Name = "Sasha", Age=14 }
};