Мелкие правки

This commit is contained in:
parent 295c8d9145
commit f68cb10d4b
2 changed files with 2 additions and 2 deletions

View File

@ -3831,7 +3831,7 @@ namespace AsbCloudDb.Migrations
{
IdUserRole = 1,
IdPermission = 526
},);
});
});
modelBuilder.Entity("AsbCloudDb.Model.RelationUserRoleUserRole", b =>

View File

@ -44,7 +44,7 @@ public class ManualDirectoryRepository : CrudRepositoryBase<ManualDirectoryDto,
public Task<bool> IsExistsAsync(int id, CancellationToken cancellationToken) =>
dbContext.ManualDirectories.AnyAsync(d => d.Id == id, cancellationToken);
private IEnumerable<ManualDirectory> BuildTree(IEnumerable<ManualDirectory> directories)
private static IEnumerable<ManualDirectory> BuildTree(IEnumerable<ManualDirectory> directories)
{
var directoryDict = directories.ToDictionary(f => f.Id);