You can try instead of constructor injection to get the services via HttpContext.RequestServices. Check here: Inject Services in Partial Controllers and here: [C#] Querying a table while creating another one
1 Like