yep, got it working now.
and how do I make the app redirect to login if the user isn't logged in?
Do I need to apply that to all pages?
thanks,
seems like adding the code only to Index.cshtml.cs under Pages folder seem to be applied for all subfolder as well.
I want to create a record on a table when there is a POST method from multiple selected entity. Currently I use AuditLogContributor > PostContribute to find the entity that i want, but how do I connect it to an appService or repository to create the new record ?
i just found out i can call the following in PostContribute context.ServiceProvider.GetRequiredService and just call the function i want. would that be an ok approach ?