14 lines
762 B
C#
14 lines
762 B
C#
using HrynCo.NotificationService.DAL.Abstract.Templates;
|
|
|
|
namespace HrynCo.NotificationService.DAL.Abstract.Repositories;
|
|
|
|
public interface IEmailTemplateRepository
|
|
{
|
|
Task<IReadOnlyList<EmailTemplate>> GetAllAsync(string? serviceName = null, string? key = null, CancellationToken ct = default);
|
|
Task<IReadOnlyList<EmailTemplate>> GetByServiceAsync(string serviceName, CancellationToken ct = default);
|
|
Task<EmailTemplate?> GetAsync(string serviceName, string key, string languageCode, CancellationToken ct = default);
|
|
Task AddAsync(EmailTemplate template, CancellationToken ct = default);
|
|
Task UpdateAsync(EmailTemplate template, CancellationToken ct = default);
|
|
Task DeleteAsync(EmailTemplate template, CancellationToken ct = default);
|
|
}
|