24 lines
858 B
C#
24 lines
858 B
C#
using LCU.API.Internal.DocumentLib.Configurations;
|
|
using LCU.API.Internal.DocumentLib.Utilities;
|
|
using LCU.API.Internal.NotificationsApiLib.Models;
|
|
using System.Threading.Tasks;
|
|
using System;
|
|
|
|
namespace LCU.API.Internal.DocumentLib.DataAccess
|
|
{
|
|
public class NotificationApiDao : INotificationApiDao
|
|
{
|
|
private readonly NotificationApiConfiguration _notificationApiConfiguration;
|
|
public NotificationApiDao(NotificationApiConfiguration notificationApiConfiguration)
|
|
{
|
|
_notificationApiConfiguration = notificationApiConfiguration;
|
|
}
|
|
|
|
public async Task SendEmailAsync(EmailRequest emailRequest)
|
|
{
|
|
await HttpUtilities.PostAsync<EmailRequest>(new Uri(_notificationApiConfiguration.EmailUrl),
|
|
emailRequest);
|
|
}
|
|
}
|
|
}
|