public static AuditTrailDto ToAuditTrailDto(this Domain.Entities.AuditTrail bo) => new AuditTrailDto { Id = bo.Id, Date = bo.Date, Message = bo.Message, StackTrace = bo.StackTrace };
public async Task CreateAsync(Domain.Entities.AuditTrail auditTrail) { var dto = auditTrail.ToAuditTrailDto(); await _repository.CreateAsync(dto).ConfigureAwait(false); }