public async Task InsertAsync(IAuditModel model) { var entity = AuditEntity.Create(model); await using var context = _contextFactory.CreateDataContext(); await context.AuditTrail.AddAsync(entity); await context.SaveChangesAsync(); }