DD.WellWorkover.Cloud/AsbCloudInfrastructure/Services/Email/WellFinalDocumentMailBodyFactory .cs

34 lines
918 B
C#
Raw Normal View History

using AsbCloudApp.Data;
using AsbCloudInfrastructure.Services.Email;
using Microsoft.Extensions.Configuration;
using System;
using System.IO;
namespace AsbCloudInfrastructure
{
2023-04-13 15:34:16 +05:00
class WellFinalDocumentMailBodyFactory : BaseFactory
{
public WellFinalDocumentMailBodyFactory(IConfiguration configuration)
: base(configuration)
{
}
public override string MakeSubject(WellDto well, string action)
=> $"{well.Deposit}, {well.Cluster}, {well.Caption}. Дело скважины. {action}";
public string MakeMailBodyForWellFinalDocument(WellDto well, string publisherName, string message)
{
var body = $"<html><body><h2>Здравствуйте, {publisherName}.</h2>" +
$"На портале {platformName} {message}," +
$" куст {well.Cluster}, месторождение {well.Deposit}." +
MakeSignatue() +
$"</body></html>";
return body;
}
}
}