Exemplo n.º 1
0
        public IQueryable <AuditedEvent> FindAuditedEvents(
            IDomainInterface onObject,
            [Optionally] DateTime?fromDate,
            [Optionally] DateTime?toDate,
            string userName)
        {
            var q = RecentAuditedEvents(onObject);

            return(AuditService.FilterForDatesAndUserName(fromDate, toDate, userName, q));
        }
Exemplo n.º 2
0
 public IQueryable <AuditedEvent> RecentAuditedEvents(IDomainInterface onObject)
 {
     return(PolymorphicNavigator.FindOwners <ObjectAuditedEventTargetObjectLink, IDomainInterface, ObjectAuditedEvent>(onObject).OrderByDescending(x => x.DateTime));
 }
Exemplo n.º 3
0
 public AuditedEvent LastAuditedEvent(IDomainInterface onObject)
 {
     return(RecentAuditedEvents(onObject).FirstOrDefault());
 }