This commit is contained in:
@@ -55,8 +55,8 @@ public sealed class CategoryService(IDbContextFactory<MidrandBooksDbContext> con
|
||||
|
||||
var query = context.Categories.AsNoTracking()
|
||||
.OrderByDescending(o => o.IsMain)
|
||||
.ThenByDescending(o => o.Id)
|
||||
.ThenBy(o => o.IsMain)
|
||||
.ThenByDescending(o => o.Id)
|
||||
.ThenBy(o => o.Name)
|
||||
.AsQueryable();
|
||||
|
||||
query = isMain is null
|
||||
|
||||
Reference in New Issue
Block a user