Exemplo n.º 1
0
        public ActionResult Index()
        {
            if (!HasAccount)
            {
                return(Redirect("/BankAccount/Index"));
            }

            // Get current budget plan if it exists
            var budgetPlan = _budgetPlanService.GetCurrent(GetCurrentAccount());

            // Get the expense summary by category
            var expenditureSummaryModel = _expenditureService.GetExpenseSummary(GetCurrentAccount(), budgetPlan);

            return(View(expenditureSummaryModel));
        }
 public BudgetPlanDetails GetCurrent(int accountId)
 {
     return(_BudgetPlanService.GetCurrent(accountId));
 }