예제 #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);
        }
예제 #2
0
 public BudgetModel(Budgets budget, Period period)
 {
     this.budget = budget;
     this.period = period;
 }