diff --git a/EnvelopeGenerator.Application/Services/EnvelopeHistoryService.cs b/EnvelopeGenerator.Application/Services/EnvelopeHistoryService.cs index 9d0bc453..4c07280e 100644 --- a/EnvelopeGenerator.Application/Services/EnvelopeHistoryService.cs +++ b/EnvelopeGenerator.Application/Services/EnvelopeHistoryService.cs @@ -76,7 +76,14 @@ public class EnvelopeHistoryService : CRUDService> RecordAsync(int envelopeId, string userReference, EnvelopeStatus status, string? comment = null) => - await CreateAsync(new (EnvelopeId: envelopeId, UserReference: userReference, Status: (int)status, ActionDate: DateTime.Now, Comment: comment)) + await CreateAsync(new () + { + EnvelopeId = envelopeId, + UserReference = userReference, + Status = (int) status, + ActionDate = DateTime.Now, + Comment = comment + }) .ThenAsync( Success: id => Result.Success(id), Fail: (mssg, ntc) => Result.Fail().Message(mssg).Notice(ntc)