Save leafinput to DB, update style for file upload

This commit is contained in:
2016-02-04 13:46:08 -05:00
parent 38247eb43f
commit 65bc2b98ab
5 changed files with 54 additions and 24 deletions
+18
View File
@@ -37,5 +37,23 @@ namespace LeafWeb.Core.DAL
select fs;
}
#endregion
#region Fluxnet Sites
public IQueryable<LeafInput> GetLeafInputs()
{
return _db.LeafInputs;
}
public void AddLeafInput(LeafInput leafInput)
{
leafInput.Created = DateTime.Now;
_db.LeafInputs.Add(leafInput);
_db.SaveChanges();
}
#endregion
}
}