first commit

This commit is contained in:
Zeeshaun
2026-03-11 11:18:25 -05:00
commit f3cb730f3b
472 changed files with 53651 additions and 0 deletions
@@ -0,0 +1,10 @@
using System.Threading.Tasks;
using LCU.Library.Internal.NotificationsModels.Models;
namespace Landmark.OLA.Application.Services.MicroApiServices
{
public interface INotificationsApiService
{
Task SendEmailAsync(EmailRequest request);
}
}
@@ -0,0 +1,32 @@
using Serilog;
using System;
using System.Threading.Tasks;
using Landmark.OLA.Application.DataAccess;
using LCU.Library.Internal.NotificationsModels.Models;
namespace Landmark.OLA.Application.Services.MicroApiServices
{
public class NotificationsApiService : INotificationsApiService
{
private readonly INotificationDao _notificationsApiDao;
public NotificationsApiService(INotificationDao notificationsApiDao)
{
_notificationsApiDao = notificationsApiDao;
}
public async Task SendEmailAsync(EmailRequest request)
{
try
{
await _notificationsApiDao.SendEmailAsync(request);
}
catch (Exception exception)
{
var error = $"Failure during SendEmailAsync. Exception Message: {exception.Message}";
Log.Error(error);
throw new Exception(error);
}
}
}
}