mirror of
https://github.com/claunia/marechai.git
synced 2025-12-16 19:14:25 +00:00
Sort processors by machine in admin page.
This commit is contained in:
@@ -55,7 +55,7 @@ namespace cicm_web.Areas.Admin.Controllers
|
||||
{
|
||||
IIncludableQueryable<ProcessorsByMachine, Processor> cicmContext =
|
||||
_context.ProcessorsByMachine.Include(p => p.Machine).Include(p => p.Processor);
|
||||
return View(await cicmContext.ToListAsync());
|
||||
return View(await cicmContext.OrderBy(p => p.Machine.Name).ThenBy(p => p.Processor.Name).ToListAsync());
|
||||
}
|
||||
|
||||
// GET: Admin/ProcessorsByMachines/Details/5
|
||||
|
||||
Reference in New Issue
Block a user