mirror of
https://github.com/aaru-dps/Aaru.Server.git
synced 2025-12-16 19:24:27 +00:00
Sort USB devices.
This commit is contained in:
@@ -16,7 +16,9 @@ namespace DiscImageChef.Server.Areas.Admin.Controllers
|
|||||||
public UsbsController(DicServerContext context) => _context = context;
|
public UsbsController(DicServerContext context) => _context = context;
|
||||||
|
|
||||||
// GET: Admin/Usbs
|
// GET: Admin/Usbs
|
||||||
public async Task<IActionResult> Index() => View(await _context.Usb.ToListAsync());
|
public async Task<IActionResult> Index() =>
|
||||||
|
View(await _context.Usb.OrderBy(u => u.Manufacturer).ThenBy(u => u.Product).ThenBy(u => u.VendorID).
|
||||||
|
ThenBy(u => u.ProductID).ToListAsync());
|
||||||
|
|
||||||
// GET: Admin/Usbs/Details/5
|
// GET: Admin/Usbs/Details/5
|
||||||
public async Task<IActionResult> Details(int? id)
|
public async Task<IActionResult> Details(int? id)
|
||||||
@@ -64,5 +66,5 @@ namespace DiscImageChef.Server.Areas.Admin.Controllers
|
|||||||
|
|
||||||
return RedirectToAction(nameof(Index));
|
return RedirectToAction(nameof(Index));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user