public void AddIncome(string incomeItem, decimal incomeValue, string coOwnerName) { base.AddIncome(incomeItem, incomeValue); CoOwner coOwner = _coOwners.Find(x => x.Name == coOwnerName); coOwner.AddIncome(incomeItem, incomeValue); }
public void AddExpense(string expenseItem, decimal expenseValue, string coOwnerName) { base.AddExpense(expenseItem, expenseValue); CoOwner coOwner = _coOwners.Find(x => x.Name == coOwnerName); coOwner.AddExpense(expenseItem, expenseValue); }
public decimal GetMonthlyIncomeOfCoOwner(string coOwnerName) { CoOwner coOwner = _coOwners.Find(x => x.Name == coOwnerName); return(coOwner.GetMonthlyIncome()); }