using GB5Shared.DTO.Framework.Login; using GB5Shared.QueryExecutor; using Newtonsoft.Json; using PayRollDAL.Query.FnEmployeePayRollInformation; using System; using System.Threading.Tasks; namespace PayRollDAL.CustomeCode.FnEmployeePayRollInformation { public class FnEmployeePayRollInformationDAL : IFnEmployeePayRollInformationDAL { private readonly IQueryExecutor _QueryExecutor; public FnEmployeePayRollInformationDAL(IQueryExecutor queryExecutor) { _QueryExecutor = queryExecutor; } public async Task GetFnEmployeePayrollInformation(int Type, int EmployeeId,string PermissionDate , LoginDTO LoginDTO) { try { var parameters = new { TYPE = Type , EMPLOYEEID = EmployeeId , PERMISSIONDATE = PermissionDate }; //var dto = await _QueryExecutor // .QuerySingleAsync(LoginDTO, sql, parameters); return ""; } catch (Exception ex) { throw new Exception("Error while fetching Employee Payroll Information", ex); } } } }