mirror of
https://github.com/lempamo/Project-Unite.git
synced 2025-01-22 17:22:15 +00: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>
|
||||
</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))
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue