예제 #1
0
 public static AuditTrailDto ToAuditTrailDto(this Domain.Entities.AuditTrail bo)
 => new AuditTrailDto
 {
     Id         = bo.Id,
     Date       = bo.Date,
     Message    = bo.Message,
     StackTrace = bo.StackTrace
 };
예제 #2
0
        public async Task CreateAsync(Domain.Entities.AuditTrail auditTrail)
        {
            var dto = auditTrail.ToAuditTrailDto();

            await _repository.CreateAsync(dto).ConfigureAwait(false);
        }