summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael <[email protected]>2017-05-07 12:09:46 -0400
committerMichael <[email protected]>2017-05-07 12:09:46 -0400
commit28e16e286d9724c5dce7ef0c12e93a288128150e (patch)
tree44625aab30241a243a0d8377e5f3e9b490d64363
parent2e0883e78cc5e40aeea0527cf0e23a817d2700dc (diff)
downloadproject-unite-28e16e286d9724c5dce7ef0c12e93a288128150e.tar.gz
project-unite-28e16e286d9724c5dce7ef0c12e93a288128150e.tar.bz2
project-unite-28e16e286d9724c5dce7ef0c12e93a288128150e.zip
fixes
-rw-r--r--Project-Unite/Views/Admin/Index.cshtml4
1 files 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
<th>Actions</th>
</tr>
@{
- 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))
{