Sending the master list by name order
This commit is contained in:
parent
76ac9de014
commit
66716dda0f
@ -584,7 +584,8 @@ namespace Marco.Pms.Services.Controllers
|
|||||||
|
|
||||||
if (tenantId == superTenantId)
|
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);
|
_logger.LogInfo("MasterMenu count for TenantId {TenantId}: {Count}", tenantId, superResponse.Count);
|
||||||
return Ok(ApiResponse<object>.SuccessResponse(superResponse, "Successfully fetched the master table list", 200));
|
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
|
var response = featureIds
|
||||||
.Where(id => featureMenus.ContainsKey(id))
|
.Where(id => featureMenus.ContainsKey(id))
|
||||||
.SelectMany(id => featureMenus[id])
|
.SelectMany(id => featureMenus[id])
|
||||||
|
.OrderBy(r => r.Name)
|
||||||
.ToList();
|
.ToList();
|
||||||
|
|
||||||
_logger.LogInfo("MasterMenu count for TenantId {TenantId}: {Count}", tenantId, response.Count);
|
_logger.LogInfo("MasterMenu count for TenantId {TenantId}: {Count}", tenantId, response.Count);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user