using MongoDB.Driver; using System; using System.Collections.Generic; namespace Bootstrap.DataAccess.MongoDB { /// /// /// public class Exceptions : DataAccess.Exceptions { /// /// /// /// public override IEnumerable RetrieveExceptions() { var msg = MongoDbAccessManager.DBAccess.GetCollection("Exceptions"); return msg.Find(ex => ex.LogTime >= DateTime.Now.AddDays(-7)).ToList(); } } }