mirror of
https://github.com/aaru-dps/Aaru.Server.git
synced 2025-12-16 19:24:27 +00:00
Sort supported densities.
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
using System.Linq;
|
||||
using System.Threading.Tasks;
|
||||
using DiscImageChef.CommonTypes.Metadata;
|
||||
using DiscImageChef.Server.Models;
|
||||
@@ -15,7 +16,14 @@ namespace DiscImageChef.Server.Areas.Admin.Controllers
|
||||
public SupportedDensitiesController(DicServerContext context) => _context = context;
|
||||
|
||||
// GET: Admin/SupportedDensities
|
||||
public async Task<IActionResult> Index() => View(await _context.SupportedDensity.ToListAsync());
|
||||
public async Task<IActionResult> Index() => View(await _context.
|
||||
SupportedDensity.OrderBy(d => d.Organization).
|
||||
ThenBy(d => d.Name).ThenBy(d => d.Description).
|
||||
ThenBy(d => d.Capacity).ThenBy(d => d.PrimaryCode).
|
||||
ThenBy(d => d.SecondaryCode).ThenBy(d => d.BitsPerMm).
|
||||
ThenBy(d => d.Width).ThenBy(d => d.Tracks).
|
||||
ThenBy(d => d.DefaultDensity).ThenBy(d => d.Writable).
|
||||
ThenBy(d => d.Duplicate).ToListAsync());
|
||||
|
||||
// GET: Admin/SupportedDensities/Delete/5
|
||||
public async Task<IActionResult> Delete(int? id)
|
||||
|
||||
Reference in New Issue
Block a user