Controllers/NotificationController.cs
/// <summary>
/// Send an email to Requester informing a Hero has accepted its visit request. 
/// </summary>
/// <returns>True, if email was sent. False, otherwise.</returns>
Send an email to Requester informing a Hero has accepted its visit request.
Send an email to Requester informing a Hero has accepted its visit request .
public Task<bool> SendRequestAcceptedEmailAsync(string acceptedBy, string heroEmail, string requesterName, string requesterEmail)
        {
            SendEmail($"Your visit request was accepted by {acceptedBy}", BuildRequestAcceptedMessage(acceptedBy, heroEmail, requesterName), requesterName, requesterEmail);
            return Task.FromResult(true);
        }
public Task < bool > SendRequestAcceptedEmailAsync ( string acceptedBy , string heroEmail , string requesterName , string requesterEmail ) { SendEmail ( $" Your visit request was accepted by  { acceptedBy } " , BuildRequestAcceptedMessage ( acceptedBy , heroEmail , requesterName ) , requesterName , requesterEmail ) ; return Task . FromResult ( true ) ; }
Send an email to Requester informing a Hero has accepted its visit request.
Send an email to Requester informing a Hero has accepted its visit request .
True, if email was sent. False, otherwise.
True if email was sent . False otherwise .
acceptedBy
string
heroEmail
string
requesterName
string
requesterEmail
string