mirror of
https://github.com/aaru-dps/Aaru.Server.git
synced 2025-12-16 19:24:27 +00:00
Use different way of showing MMC FEATURES.
This commit is contained in:
@@ -16,7 +16,18 @@ namespace DiscImageChef.Server.Areas.Admin.Controllers
|
||||
public MmcController(DicServerContext context) => _context = context;
|
||||
|
||||
// GET: Admin/Mmc
|
||||
public async Task<IActionResult> Index() => View(await _context.Mmc.ToListAsync());
|
||||
public IActionResult Index() => View(_context.Mmc.Where(m => m.ModeSense2AData != null).
|
||||
Select(m => new MmcModelForView
|
||||
{
|
||||
Id = m.Id, FeaturesId = m.FeaturesId,
|
||||
DataLength = m.ModeSense2AData.Length
|
||||
}).ToList().
|
||||
Concat(_context.Mmc.Where(m => m.ModeSense2AData == null).
|
||||
Select(m => new MmcModelForView
|
||||
{
|
||||
Id = m.Id, FeaturesId = m.FeaturesId,
|
||||
DataLength = 0
|
||||
}).ToList()).OrderBy(m => m.Id));
|
||||
|
||||
// GET: Admin/Mmc/Details/5
|
||||
public async Task<IActionResult> Details(int? id)
|
||||
|
||||
Reference in New Issue
Block a user