How to initilize a class when the page is loaded. (ASP.Net Core (Razor Pages))
I am having an issue with my code where my OnGet()
method isn’t being called when the page loads. Now I may be wrong on how the OnGet()
method is supposed to work but I cannot seem to figured out at bare minimum a work around. Here is my Index.cshtml.cs file: