using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading; using System.Threading.Tasks; using GB5Shared.PushNotification; using FrameworkDAL.CustomCode.EventLog; using FrameworkDAL.DTO.EventLog; using GB5Shared.DTO.Framework.Login; using GB5Shared.GenerateAutoNumber; using GB5Shared.Validation; namespace FrameworkBLL.EventLog { public class EventLogBLL : IEventLogBLL { private readonly IEventLogDAL _EventLogDAL; private readonly AutoNumber _AutoNumber; private readonly IValidation _Validation; public EventLogBLL(IEventLogDAL EventLogDAL, AutoNumber AutoNumber, IValidation Validation) { _EventLogDAL = EventLogDAL; _AutoNumber = AutoNumber; _Validation = Validation; } public async Task GetEventLog(int EventLogId, LoginDTO LoginDTO) { try { return await _EventLogDAL.GetEventLog(EventLogId, LoginDTO); } catch (Exception) { throw; } } public async Task SaveEventLog(EventLogDTO EventLogDTO, LoginDTO LoginDTO) { try { return await _EventLogDAL.SaveEventLog(EventLogDTO, LoginDTO); } catch (Exception) { throw; } } public async Task DeleteEventLog(int EventLogId, LoginDTO LoginDTO) { try { return await _EventLogDAL.DeleteEventLog(EventLogId, LoginDTO); } catch (Exception) { throw; } } /// public async Task SaveLoginEventLog(EventLogDTO eventLogDTO, LoginDTO loginDTO, CancellationToken ct = default) { try { return await _EventLogDAL.SaveLoginEventLog(eventLogDTO, loginDTO, ct); } catch (Exception) { throw; } } } }