Exemple #1
0
        public async Task AddBudget(BudgetInput input)
        {
            Guard.AssertNotNull(input);

            var budget = new Budget {
                Name                    = input.Name,
                MonthlyBudget           = input.MonthlyBudget,
                WeeklyBudget            = input.WeeklyBudget,
                MonthlySavingAmount     = input.MonthlySavingAmount,
                MonthlySavingPercentage = input.MonthlySavingPercentage,
                Transactions            = GetTransactionsFromInput(input.Transactions),
                CreatedOn               = _clock.Now
            };

            await _budgetRepository.Add(budget);

            await _uow.Complete();
        }
Exemple #2
0
 public void AddInput(BudgetInput budgetInput)
 {
     throw new NotImplementedException();
 }