Exemple #1
0
 private IEnumerable <string> RepayInstalments(BatchRepayInstalmentsEvent inputEvent)
 {
     foreach (var id in inputEvent.Ids)
     {
         var totalAmountPaid = loansRepository.RepayInstalment(id);
         if (totalAmountPaid)
         {
             yield return(loansRepository.Get(id).PaymentId);
         }
     }
 }