diff --git a/Bootstrap.DataAccess.MongoDB/Log.cs b/Bootstrap.DataAccess.MongoDB/Log.cs index d04b976d..97e134b5 100644 --- a/Bootstrap.DataAccess.MongoDB/Log.cs +++ b/Bootstrap.DataAccess.MongoDB/Log.cs @@ -18,5 +18,17 @@ namespace Bootstrap.DataAccess.MongoDB var log = MongoDbAccessManager.DBAccess.GetCollection("Logs"); return log.Find(l => l.LogTime >= DateTime.Now.AddDays(-7)).ToList(); } + /// + /// + /// + /// + /// + public override bool SaveLog(DataAccess.Log log) + { + var logs = MongoDbAccessManager.DBAccess.GetCollection("Logs"); + log.LogTime = DateTime.Now; + logs.InsertOne(log); + return true; + } } }