Пример #1
0
        public IEnumerable <IAuditTrailEntry> GetEntries()
        {
            CheckPermission(Permissions.ViewAudittrail);
            var mapper = mapperFactory.CreateAuditTrailEntryMapper();

            return(mapper.Map(queryService.GetEntries()));
        }
Пример #2
0
        public IHttpActionResult GetAuditTrailEntries()
        {
            ICollection <AuditTrailEntry> entries = mapperFactory.CreateAuditTrailEntryMapper().Map(auditTrailService.GetEntries());

            return(Ok(entries));
        }