Example #1
0
        public IHttpActionResult GetAuditTrailEntries([FromBody] AuditTrailFilter tf)
        {
            var filter = mapperFactory.CreateAuditTrailFilterMapper().Map(tf);

            AuditTrailResult result = mapperFactory.CreateAuditTrailResultMapper().Map(auditTrailService.GetEntries(filter));

            return(Ok(result));
        }
Example #2
0
        public IAuditTrailResult GetEntries(IAuditTrailFilter filter)
        {
            CheckPermission(Permissions.ViewAudittrail);
            var queryFilter = mapperFactory.CreateAuditTrailFilterMapper().Map(filter);

            var mapper = mapperFactory.CreateAuditTrailResultMapper();

            return(mapper.Map(queryService.GetEntries(queryFilter)));
        }