Add priority
This commit is contained in:
@@ -54,6 +54,14 @@ namespace LeafWeb.Core.DAL
|
||||
return _db.LeafInputs;
|
||||
}
|
||||
|
||||
public IQueryable<LeafInput> GetLeafInputsOrdered()
|
||||
{
|
||||
return _db.LeafInputs
|
||||
.OrderByDescending(li => li.CurrentStatus == LeafInputStatusType.Pending)
|
||||
.ThenByDescending(li => li.PendingPriority)
|
||||
.ThenByDescending(li => li.Id);
|
||||
}
|
||||
|
||||
public LeafInput GetLeafInput(int id)
|
||||
{
|
||||
return _db.LeafInputs.FirstOrDefault(li => li.Id == id);
|
||||
|
||||
Reference in New Issue
Block a user