mirror of
https://github.com/aaru-dps/Aaru.Server.git
synced 2025-12-16 19:24:27 +00:00
Sort device stats.
This commit is contained in:
@@ -15,7 +15,9 @@ namespace DiscImageChef.Server.Areas.Admin.Controllers
|
|||||||
public DeviceStatsController(DicServerContext context) => _context = context;
|
public DeviceStatsController(DicServerContext context) => _context = context;
|
||||||
|
|
||||||
// GET: Admin/DeviceStats
|
// GET: Admin/DeviceStats
|
||||||
public async Task<IActionResult> Index() => View(await _context.DeviceStats.ToListAsync());
|
public async Task<IActionResult> Index() =>
|
||||||
|
View(await _context.DeviceStats.OrderBy(d => d.Manufacturer).ThenBy(d => d.Model).ThenBy(d => d.Bus).
|
||||||
|
ToListAsync());
|
||||||
|
|
||||||
// GET: Admin/DeviceStats/Edit/5
|
// GET: Admin/DeviceStats/Edit/5
|
||||||
public async Task<IActionResult> Edit(int? id)
|
public async Task<IActionResult> Edit(int? id)
|
||||||
|
|||||||
Reference in New Issue
Block a user