add workshopIds to role get details

This commit is contained in:
2025-05-30 23:14:38 +03:30
parent b492aa39e8
commit 59deae29c2
3 changed files with 3 additions and 10 deletions

View File

@@ -7,5 +7,6 @@ namespace AccountManagement.Application.Contracts.SubAccount
public long Id { get; set; }
public string Title { get; set; }
public List<int> Permissions { get; set; }
public List<long> WorkshopIds { get; set; }
}
}

View File

@@ -231,7 +231,8 @@ namespace AccountManagement.Application
{
Id = entity.id,
Title = entity.Title,
Permissions = entity.RolePermissions.Select(x => x.PermissionCode).ToList()
Permissions = entity.RolePermissions.Select(x => x.PermissionCode).ToList(),
WorkshopIds = entity.RoleWorkshops.Select(x=>x.WorkshopId).ToList()
};
}

View File

@@ -250,15 +250,6 @@ namespace ServiceHost.Areas.Client.Pages.Company.SubAccounts
});
}
#region Sub Account
public IActionResult OnPostSendSms()
{