We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8579606 commit 609a47aCopy full SHA for 609a47a
src/Infrastructure/Rsp.UsersService.Infrastructure/Helpers/IrasUserAuditTrailHandler.cs
@@ -67,8 +67,17 @@ public async Task<IEnumerable<UserAuditTrail>> GenerateAuditTrails(EntityEntry e
67
68
if (property.Metadata.Name == nameof(IrasUser.Country))
69
{
70
- oldValue = property.OriginalValue?.ToString()?.Replace(",", ", ") ?? emptyValue;
71
- newValue = property.CurrentValue?.ToString()?.Replace(",", ", ") ?? emptyValue;
+ oldValue = property.OriginalValue?.ToString()?.Replace(",", ", ");
+ if (string.IsNullOrEmpty(oldValue as string))
72
+ {
73
+ oldValue = emptyValue;
74
+ }
75
+
76
+ newValue = property.CurrentValue?.ToString()?.Replace(",", ", ");
77
+ if (string.IsNullOrEmpty(newValue as string))
78
79
+ newValue = emptyValue;
80
81
}
82
83
updateAuditTrail.Description =
0 commit comments