Save leafinput to DB, update style for file upload
This commit is contained in:
@@ -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
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user