DD.WellWorkover.Cloud/AsbCloudInfrastructure/Services/Email/WellFinalDocumentMailBodyFactory .cs
2024-08-19 10:01:07 +05:00

32 lines
926 B
C#
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

using AsbCloudApp.Data;
using AsbCloudInfrastructure.Services.Email;
using Microsoft.Extensions.Configuration;
using System;
using System.IO;
namespace AsbCloudInfrastructure;
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;
}
}