public IEnumerable GetBalances() { List <MonthBalanceItem> ul = MoneyBalanceHelper.GetBalances(new MonthlyMoneyTransactionSearchParameters()); if (ul.NotEmpty()) { txAvgBalance.Text = ul.Where(x => !x.Active).Average(x => x.Balance).ToInteger().FormattedString(); txLastBalance.Text = ul.Where(x => !x.Active).OrderByDescending(x => x.Month).First().Balance.FormattedString(); SetColor(txAvgBalance); SetColor(txLastBalance); } return(ul); }
public IEnumerable GetOpenTrans() { List <MonthlyMoneyTransaction> ul = MoneyBalanceHelper.GetOpenTrans(new MonthlyMoneyTransactionSearchParameters()); return(ul); }
private static void MoneyBalanceDataAction(LoggedUser u) { MoneyBalanceHelper.RefreshUserData(u); }