mirror of
https://github.com/aaru-dps/Aaru.Server.git
synced 2025-12-16 19:24:27 +00:00
Sort operating systems.
This commit is contained in:
@@ -1,3 +1,4 @@
|
|||||||
|
using System.Linq;
|
||||||
using System.Threading.Tasks;
|
using System.Threading.Tasks;
|
||||||
using DiscImageChef.Server.Models;
|
using DiscImageChef.Server.Models;
|
||||||
using Microsoft.AspNetCore.Authorization;
|
using Microsoft.AspNetCore.Authorization;
|
||||||
@@ -14,6 +15,7 @@ namespace DiscImageChef.Server.Areas.Admin.Controllers
|
|||||||
public OperatingSystemsController(DicServerContext context) => _context = context;
|
public OperatingSystemsController(DicServerContext context) => _context = context;
|
||||||
|
|
||||||
// GET: Admin/OperatingSystems
|
// GET: Admin/OperatingSystems
|
||||||
public async Task<IActionResult> Index() => View(await _context.OperatingSystems.ToListAsync());
|
public async Task<IActionResult> Index() =>
|
||||||
|
View(await _context.OperatingSystems.OrderBy(o => o.Name).ThenBy(o => o.Version).ToListAsync());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user