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(new Uri(_notificationApiConfiguration.EmailUrl), emailRequest); } } }