mirror of
https://github.com/aaru-dps/Aaru.Server.git
synced 2025-12-16 19:24:27 +00:00
Order ATA responses in CRUD by model.
This commit is contained in:
@@ -22,9 +22,9 @@ namespace DiscImageChef.Server.Areas.Admin.Controllers
|
||||
}
|
||||
|
||||
// GET: Admin/Atas
|
||||
public async Task<IActionResult> Index()
|
||||
public IActionResult Index()
|
||||
{
|
||||
return View(await _context.Ata.ToListAsync());
|
||||
return View(_context.Ata.AsEnumerable().Where(m=>m.IdentifyDevice?.Model != null).OrderBy(m => m.IdentifyDevice.Value.Model));
|
||||
}
|
||||
|
||||
// GET: Admin/Atas/Details/5
|
||||
|
||||
Reference in New Issue
Block a user