diff --git a/AsbCloudInfrastructure/Services/WellFinalDocumentsService.cs b/AsbCloudInfrastructure/Services/WellFinalDocumentsService.cs index 7934ba9a..ba1f9533 100644 --- a/AsbCloudInfrastructure/Services/WellFinalDocumentsService.cs +++ b/AsbCloudInfrastructure/Services/WellFinalDocumentsService.cs @@ -195,7 +195,7 @@ namespace AsbCloudInfrastructure.Services } } - private void SendMessage(WellDto well, UserDto user, string documentCategory, string message, CancellationToken token) + private void SendMessage(WellDto? well, UserDto user, string documentCategory, string message, CancellationToken token) { var factory = new WellFinalDocumentMailBodyFactory(configuration); var subject = factory.MakeSubject(well, documentCategory); @@ -203,7 +203,7 @@ namespace AsbCloudInfrastructure.Services emailService.EnqueueSend(user.Email, subject, body); } - private WellFinalDocumentDBDto Convert(WellFinalDocument entity) + private static WellFinalDocumentDBDto Convert(WellFinalDocument entity) => entity.Adapt(); } #nullable disable