mirror of
https://github.com/lempamo/Project-Unite.git
synced 2025-01-22 11:21:47 -05:00
fixes
This commit is contained in:
parent
2e0883e78c
commit
28e16e286d
1 changed files with 2 additions and 2 deletions
|
@ -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))
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue