예제 #1
0
 /// <summary>
 /// Recalculates the remaining amount.
 /// </summary>
 public void Recalculate()
 {
     AmountDifference = (Payers.Where(p => p.Amount != null).Sum(p => p.Amount) ?? 0) - (Debtors.Where(p => p.Amount != null).Sum(p => p.Amount) ?? 0);
 }