Here's the new source code with the new DI-injected instances (new/updated lines are highlighted):
using System;using Microsoft.AspNetCore.Mvc;using Newtonsoft.Json;using System.Collections.Generic;using System.Linq;using TestMakerFreeWebApp.Data;using Mapster;using Microsoft.AspNetCore.Identity;using Microsoft.Extensions.Configuration;namespace TestMakerFreeWebApp.Controllers{ [Route("api/[controller]")] public class BaseApiController : Controller { #region Constructor public BaseApiController( ApplicationDbContext context, RoleManager<IdentityRole> roleManager, UserManager<ApplicationUser> userManager, IConfiguration configuration ) { // Instantiate the required classes through DI DbContext = context; RoleManager ...