This commit is contained in:
Michael 2017-05-07 12:09:46 -04:00
parent 2e0883e78c
commit 28e16e286d

View file

@ -121,8 +121,8 @@ git clone https://github.com/MichaelTheShifter/Project-Unite
<th>Actions</th> <th>Actions</th>
</tr> </tr>
@{ @{
Role[] roles = db.Roles.ToArray() as Role[]; var roles = db.Roles.ToArray();
roles = roles.OrderByDescending(x => x.Priority).ToArray(); roles = roles.OrderByDescending(x => (x as Role).Priority).ToArray();
} }
@foreach (Role role in roles.GetItemsOnPage(i, 10)) @foreach (Role role in roles.GetItemsOnPage(i, 10))
{ {