Example #1
0
        public async Task <Budget> DeleteTransaction(TransactionForm transactionForm, string BudgetId, string CategoryId)
        {
            Transaction transaction = MapTransactionFormToTransaction(transactionForm);

            return(await _budgetRepository.DeleteTransaction(new ObjectId(BudgetId), new ObjectId(CategoryId), transaction, transactionForm.IsPlanned));
        }