public void RemoveCategoryFromBudget(Guid categoryId, Guid budgetId) { var relationship = new BudgetToCategory { CategoryId = categoryId, BudgetId = budgetId }; db.Delete(relationship); }
public void AddCategoryToBudget(Guid categoryId, Guid budgetId) { var relationship = new BudgetToCategory { CategoryId = categoryId, BudgetId = budgetId }; db.Insert(relationship); }