Tenant_Management #114

Merged
ashutosh.nehete merged 73 commits from Tenant_Management into main 2025-08-28 05:13:10 +00:00
Showing only changes of commit 66716dda0f - Show all commits

View File

@ -584,7 +584,8 @@ namespace Marco.Pms.Services.Controllers
if (tenantId == superTenantId)
{
var superResponse = featureMenus.Values.SelectMany(list => list).ToList();
var superResponse = featureMenus.Values.SelectMany(list => list).OrderBy(r => r.Name).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));
}
@ -597,6 +598,7 @@ namespace Marco.Pms.Services.Controllers
var response = featureIds
.Where(id => featureMenus.ContainsKey(id))
.SelectMany(id => featureMenus[id])
.OrderBy(r => r.Name)
.ToList();
_logger.LogInfo("MasterMenu count for TenantId {TenantId}: {Count}", tenantId, response.Count);