Added leaf status, ssh.net

This commit is contained in:
2016-02-05 23:06:17 -05:00
parent 617c528b06
commit d185adc844
6 changed files with 45 additions and 14 deletions
+6 -1
View File
@@ -39,13 +39,18 @@ namespace LeafWeb.Core.DAL
#endregion
#region Fluxnet Sites
#region LeafInput Sites
public IQueryable<LeafInput> GetLeafInputs()
{
return _db.LeafInputs;
}
public LeafInput GetLeafInput(int id)
{
return _db.LeafInputs.FirstOrDefault(li => li.Id == id);
}
public void AddLeafInput(LeafInput leafInput)
{
leafInput.Created = DateTime.Now;