Order ATA responses in CRUD by model.

This commit is contained in:
2019-11-08 01:10:15 +00:00
parent a6ee989044
commit 8ba281b0da

View File

@@ -22,9 +22,9 @@ namespace DiscImageChef.Server.Areas.Admin.Controllers
} }
// GET: Admin/Atas // 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 // GET: Admin/Atas/Details/5