Beispiel #1
0
        public async Task <decimal> StudentLoanRepaymentAmountAsync(int id, decimal totalAmount)
        {
            var employee = await _unitOfWork.EmployeeRepository.GetByIdAsync(id);

            return((employee.StudentLoan == StudentLoan.Yes) ? _loan.Calculate(totalAmount) : 0);
        }