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