Set logic the get all master table for super tenant
This commit is contained in:
parent
3864788d43
commit
76ac9de014
@ -584,9 +584,9 @@ namespace Marco.Pms.Services.Controllers
|
||||
|
||||
if (tenantId == superTenantId)
|
||||
{
|
||||
_logger.LogInfo("MasterMenu count for TenantId {TenantId}: {Count}", tenantId, featureMenus.Count);
|
||||
|
||||
return Ok(ApiResponse<object>.SuccessResponse(featureMenus, "Successfully fetched the master table list", 200));
|
||||
var superResponse = featureMenus.Values.SelectMany(list => list).ToList();
|
||||
_logger.LogInfo("MasterMenu count for TenantId {TenantId}: {Count}", tenantId, superResponse.Count);
|
||||
return Ok(ApiResponse<object>.SuccessResponse(superResponse, "Successfully fetched the master table list", 200));
|
||||
}
|
||||
|
||||
// Fetch features enabled for tenant
|
||||
@ -600,7 +600,6 @@ namespace Marco.Pms.Services.Controllers
|
||||
.ToList();
|
||||
|
||||
_logger.LogInfo("MasterMenu count for TenantId {TenantId}: {Count}", tenantId, response.Count);
|
||||
|
||||
return Ok(ApiResponse<object>.SuccessResponse(response, "Successfully fetched the master table list", 200));
|
||||
}
|
||||
catch (Exception ex)
|
||||
|
Loading…
x
Reference in New Issue
Block a user