Time estimation work
This commit is contained in:
@@ -80,6 +80,16 @@ namespace LeafWeb.Core.DAL
|
||||
select s).Max(s => s.DateTime));
|
||||
}
|
||||
|
||||
public IEnumerable<LeafInput> GetLeafInputRecentlyCompleted(int count)
|
||||
{
|
||||
return
|
||||
_db.LeafInputs
|
||||
.Where(li => li.CurrentStatus == LeafInputStatusType.Complete)
|
||||
.Take(count)
|
||||
.ToList()
|
||||
.Where(li => li.OutputErrorMessage == null);
|
||||
}
|
||||
|
||||
public LeafInput GetLeafInput(int id)
|
||||
{
|
||||
return _db.LeafInputs.FirstOrDefault(li => li.Id == id);
|
||||
|
||||
Reference in New Issue
Block a user