Files
monorepo/LCU.API.Internal.MemberPreferencesApi/LCU.API.Internal.MemberPreferencesApi/Services/MicroApiServices/ScanBiCoreApiWrapperService.cs
T
2026-04-07 13:11:39 -05:00

29 lines
948 B
C#

using LCU.API.Internal.MemberPreferencesApi.DataAccess;
namespace LCU.API.Internal.MemberPreferencesApi.MicroApiServices;
public class ScanBiCoreApiWrapperService : IScanBiCoreApiWrapperService
{
private readonly IScanBiCoreApiWrapperDao _scanBiCoreApiWrapperDao;
public ScanBiCoreApiWrapperService(IScanBiCoreApiWrapperDao scanBiCoreApiWrapperDao)
{
_scanBiCoreApiWrapperDao = scanBiCoreApiWrapperDao;
}
public async Task<IEnumerable<long>> GetAuditOrganizationFromDateLastMaintained(DateTime dateTime)
{
try
{
return await _scanBiCoreApiWrapperDao.GetAuditOrganizationFromDateLastMaintained(dateTime);
}
catch (Exception ex)
{
var error = $"Failed to GetAuditOrganizationFromDateLastMaintained. DateTime: {dateTime} Exception Message: {ex.Message}";
Log.Error(error);
throw new ServiceException(error);
}
}
}