adding
This commit is contained in:
+23
@@ -0,0 +1,23 @@
|
||||
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);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user