using System; using System.Threading.Tasks; using GB5Shared.DTO.Framework.Login; using PayRollDAL.CustomeCode.FnEmployeePayRollInformation; namespace PayRollBLL.FnEmployeePayRollInformation { public class FnEmployeePayRollInformationBLL : IFnEmployeePayRollInformationBLL { private readonly IFnEmployeePayRollInformationDAL _FnEmployeePayRollInformationDAL; public FnEmployeePayRollInformationBLL(IFnEmployeePayRollInformationDAL fnEmployeePayRollInformationDAL) { _FnEmployeePayRollInformationDAL = fnEmployeePayRollInformationDAL; } public async Task GetFnEmployeePayrollInformation(int Type, int EmployeeId, string PermissionDate, LoginDTO LoginDTO) { try { return await _FnEmployeePayRollInformationDAL .GetFnEmployeePayrollInformation(Type,EmployeeId, PermissionDate, LoginDTO); } catch (Exception ex) { throw new Exception("Error while fetching Payroll Information", ex); } } } }