summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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))
{