Implement list admin page for resolutions by screen.

This commit is contained in:
2019-06-02 01:00:03 +01:00
parent a77c0d4912
commit 598a2dff19
4 changed files with 21 additions and 11 deletions

View File

@@ -25,7 +25,8 @@ namespace cicm_web.Areas.Admin.Controllers
{
IIncludableQueryable<ResolutionsByScreen, Screen> cicmContext =
_context.ResolutionsByScreen.Include(r => r.Resolution).Include(r => r.Screen);
return View(await cicmContext.ToListAsync());
return View(await cicmContext.OrderBy(r => r.Screen.ToString()).ThenBy(r => r.Resolution.ToString())
.ToListAsync());
}
// GET: ResolutionsByScreen/Details/5