public int GetLeaderMaxLevel(string personType, string leaveType, decimal duration)
        {
            var approvalRule = new ApprovalRule();

            approvalRule.PersonType = personType;
            approvalRule.LeaveType  = leaveType;
            approvalRule.Duration   = duration;

            return(_approvalRuleRepository.GetLeaderMaxLevel(approvalRule));
        }
        public int GetLeaderMaxLevel(PersonType personType, LeaveType leaveType, double duration)
        {
            var rule = new ApprovalRule()
            {
                PersonType = personType,
                LeaveType  = leaveType,
                Duration   = duration
            };

            return(_approvalRuleRepository.GetLeaderMaxLevel(rule));
        }