0
WilliamT created
- ABP Framework version: v6.0.2
- UI Type: MVC
- Database System: EF Core
- Tiered (for MVC) or Auth Server Separated (for Angular): yes
- Exception message and full stack trace:
- Steps to reproduce the issue:
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 ?
2 Answer(s)
-
0
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 ?
-
0
Hi,
You can use
context.ServiceProvider.GetRequiredService
to get any services from the IOC container.