Files
monorepo/LCU.API.Internal.Document/LCU.API.Internal.DocumentLib/DataAccess/NotificationApiDao.cs
T
2026-03-13 09:11:35 -05:00

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);
}
}
}