public SendWelcomeEmail ( string message ) : string | ||
message | string | |
return | string |
public string SendWelcomeEmail(string message)
{
var emailService = new EmailService();
var subject = ("Hello " + this.CompanyName).Trim();
var confirmation = emailService.SendMessage(subject,
message,
this.Email);
return confirmation;
}
public string SayHello() { vendor.SendWelcomeEmail("Message from Product"); var emailservice = new EmailService(); emailservice.SendMessage("New Product", this.Name, "*****@*****.**"); var loggingService = LogAction("Saying hello"); return($"Hello {Name} ({Id}): {Description}. " + $"Available on: {AvailabilityDate?.ToShortDateString()}"); }