Document_Manager #129

Merged
ashutosh.nehete merged 83 commits from Document_Manager into main 2025-09-11 04:12:01 +00:00
Showing only changes of commit caeac04d0d - Show all commits

View File

@ -13,6 +13,7 @@ namespace Marco.Pms.Services.Helpers
private readonly ApplicationDbContext _context; // Keeping this for direct scoped context use where appropriate
private readonly ILoggingService _logger;
private readonly FeatureDetailsHelper _featureDetailsHelper;
private static readonly Guid SuperTenantId = Guid.Parse("b3466e83-7e11-464c-b93a-daf047838b26");
public GeneralHelper(IDbContextFactory<ApplicationDbContext> dbContextFactory,
ApplicationDbContext context,
ILoggingService logger,
@ -307,6 +308,10 @@ namespace Marco.Pms.Services.Helpers
try
{
if (tenantId == SuperTenantId)
{
return true;
}
// Run both queries concurrently
var totalSeatsTask = GetMaxSeatsAsync(tenantId);
var totalSeatsTakenTask = GetActiveEmployeesCountAsync(tenantId);