Time estimation work

This commit is contained in:
2017-02-07 12:02:22 -05:00
parent 223a1c996a
commit 5f0e9baf1d
7 changed files with 160 additions and 19 deletions
+10
View File
@@ -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);