using GB5Shared.DTO.Framework.Criteria; using GB5Shared.DTO.Framework.Login; using GB5Shared.Resource.Response; using PayRollDAL.CustomeCode.PayTaxType; using PayRollDAL.DTO.PayTaxType; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace PayRollBLL.PayTaxType { public class PayTaxTypeBLL : IPayTaxTypeBLL { private readonly IPayTaxTypeDAL _PayTaxTypeDAL; public PayTaxTypeBLL(IPayTaxTypeDAL IPayTaxTypeDAL) { _PayTaxTypeDAL = IPayTaxTypeDAL; } public async Task GetPayTaxType(int PayTaxTypeId, LoginDTO LoginDTO) { try { return await _PayTaxTypeDAL.GetPayTaxType(PayTaxTypeId, LoginDTO); } catch (Exception) { throw; } } public async Task UpdatePayTaxType(int PayTaxTypeId, int PeriodId, LoginDTO LoginDTO) { try { await _PayTaxTypeDAL.UpdatePayTaxType(PayTaxTypeId, PeriodId, LoginDTO); return SuccessResponse.UpdateSuccessMessage; } catch (Exception) { throw; } } public async Task GetSelectListPayTaxType(int FirstNumber, int MaxResult, CriteriaDTO CriteriaDTO, LoginDTO LoginDTO, bool IsCount = false) { try { return await _PayTaxTypeDAL.GetSelectListPayTaxType(FirstNumber, MaxResult, CriteriaDTO, LoginDTO, IsCount); } catch (Exception) { throw; } } } }