[AbpMvcAuthorize] [Route("api/Test")] [ApiController] public class TestController : DiveCRMControllerBase { private readonly IDbContextProvider<DiveCRMDbContext> _provider; public TestController(IDbContextProvider<DiveCRMDbContext> provider) { _provider = provider; } [HttpGet] public string Get() { var q = _provider.GetDbContext().Customers.ToList(); return q.ToString(); } }