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 = $"

Здравствуйте, {publisherName}.

" + $"На портале {platformName} {message}," + $" куст {well.Cluster}, месторождение {well.Deposit}." + MakeSignatue() + $""; return body; } }