feat(m9/T23a): folder sibling reorder (ReorderFolderAsync + command + handler)
This commit is contained in:
+4
-1
@@ -632,7 +632,10 @@ public class TemplateEngineRepository : ITemplateEngineRepository
|
||||
|
||||
/// <inheritdoc />
|
||||
public async Task<IReadOnlyList<TemplateFolder>> GetAllFoldersAsync(CancellationToken cancellationToken = default)
|
||||
=> await _context.TemplateFolders.ToListAsync(cancellationToken);
|
||||
=> await _context.TemplateFolders
|
||||
.OrderBy(f => f.SortOrder)
|
||||
.ThenBy(f => f.Name)
|
||||
.ToListAsync(cancellationToken);
|
||||
|
||||
/// <inheritdoc />
|
||||
public async Task AddFolderAsync(TemplateFolder folder, CancellationToken cancellationToken = default)
|
||||
|
||||
Reference in New Issue
Block a user