Controllers/NotificationController.cs
/// <summary>
/// Send an email to Hero informing a visit request was received.
/// </summary>
/// <returns>True, if email was sent. False, otherwise.</returns>
Send an email to Hero informing a visit request was received.
Send an email to Hero informing a visit request was received .
public Task<bool> SendRequestReceivedEmailAsync(string requestedBy, string description, string heroName, string heroEmail)
        {
            SendEmail($"Your received a visit request by {requestedBy}", BuildRequestReceivedMessage(requestedBy, description, heroName), heroName, heroEmail);
            return Task.FromResult(true);
        }
public Task < bool > SendRequestReceivedEmailAsync ( string requestedBy , string description , string heroName , string heroEmail ) { SendEmail ( $" Your received a visit request by  { requestedBy } " , BuildRequestReceivedMessage ( requestedBy , description , heroName ) , heroName , heroEmail ) ; return Task . FromResult ( true ) ; }
Send an email to Hero informing a visit request was received.
Send an email to Hero informing a visit request was received .
True, if email was sent. False, otherwise.
True if email was sent . False otherwise .
requestedBy
string
description
string
heroName
string
heroEmail
string