public async Task <Budget> AddCategoryToBudget(CategoryForm categoryForm, string budgetId) { var category = new Category { Name = categoryForm.Name, Description = categoryForm.Description, IsExpense = true, PlannedTransactions = new List <Transaction>(), ActualTransactions = new List <Transaction>() }; return(await _budgetRepository.AddCategory(new ObjectId(budgetId), category)); }