diff options
| author | Michael <[email protected]> | 2017-05-07 12:09:46 -0400 |
|---|---|---|
| committer | Michael <[email protected]> | 2017-05-07 12:09:46 -0400 |
| commit | 28e16e286d9724c5dce7ef0c12e93a288128150e (patch) | |
| tree | 44625aab30241a243a0d8377e5f3e9b490d64363 | |
| parent | 2e0883e78cc5e40aeea0527cf0e23a817d2700dc (diff) | |
| download | project-unite-28e16e286d9724c5dce7ef0c12e93a288128150e.tar.gz project-unite-28e16e286d9724c5dce7ef0c12e93a288128150e.tar.bz2 project-unite-28e16e286d9724c5dce7ef0c12e93a288128150e.zip | |
fixes
| -rw-r--r-- | Project-Unite/Views/Admin/Index.cshtml | 4 |
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)) { |
