Example #1
0
        private void UpdateBudget(BudgetAddViewModel model, Budgets budget)
        {
            budget.Amount = model.Amount;

            this.budgetRepository.Save(budget);

            var handler = this.Updated;

            handler?.Invoke(this, EventArgs.Empty);
        }
Example #2
0
 public BudgetModel(Budgets budget, Period period)
 {
     this.budget = budget;
     this.period = period;
 }