EmailTemplateService
public class EmailTemplateService : EntityServiceBase, IEmailTemplateService
Inheritance
- class EntityServiceBase
- interface IEmailTemplateService
Namespace
Constructors
EmailTemplateService
public EmailTemplateService(ILicensingService licensingService,
IRepositoryFactory repositoryFactory, IUnitOfWorkProvider uowProvider, ILogger logger,
ICache cache, IEntityStateCacheAccessor entityStateCacheAccessor)
Methods
DeleteEmailTemplate (1 of 2)
public void DeleteEmailTemplate(Guid id)
DeleteEmailTemplate (2 of 2)
public void DeleteEmailTemplate(EmailTemplate entity)
EmailTemplateExists
public bool EmailTemplateExists(Guid storeId, string alias)
GetEmailTemplate (1 of 2)
public EmailTemplateReadOnly GetEmailTemplate(Guid id)
GetEmailTemplate (2 of 2)
public EmailTemplateReadOnly GetEmailTemplate(Guid storeId, string alias)
GetEmailTemplates
public IEnumerable<EmailTemplateReadOnly> GetEmailTemplates(Guid storeId)
SaveEmailTemplate
public void SaveEmailTemplate(EmailTemplate entity)
SendEmail
public bool SendEmail(EmailTemplateReadOnly emailTemplate, OrderReadOnly order)
SendEmail<TModel>
public bool SendEmail<TModel>(EmailTemplateReadOnly emailTemplate, TModel model,
string toEmailAddress, string languageIsoCode)
SortEmailTemplates
public void SortEmailTemplates(Guid[] sortedIds)