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>
</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))
{