From 28e16e286d9724c5dce7ef0c12e93a288128150e Mon Sep 17 00:00:00 2001 From: Michael Date: Sun, 7 May 2017 12:09:46 -0400 Subject: [PATCH] fixes --- Project-Unite/Views/Admin/Index.cshtml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Project-Unite/Views/Admin/Index.cshtml b/Project-Unite/Views/Admin/Index.cshtml index 38a2ca6..872f158 100644 --- a/Project-Unite/Views/Admin/Index.cshtml +++ b/Project-Unite/Views/Admin/Index.cshtml @@ -121,8 +121,8 @@ git clone https://github.com/MichaelTheShifter/Project-Unite Actions @{ - Role[] roles = db.Roles.ToArray() as Role[]; - roles = roles.OrderByDescending(x => x.Priority).ToArray(); + var roles = db.Roles.ToArray(); + roles = roles.OrderByDescending(x => (x as Role).Priority).ToArray(); } @foreach (Role role in roles.GetItemsOnPage(i, 10)) {