Ejemplo n.º 1
0
        public void RemoveCategoryFromBudget(Guid categoryId, Guid budgetId)
        {
            var relationship = new BudgetToCategory { CategoryId = categoryId, BudgetId = budgetId };

            db.Delete(relationship);
        }
Ejemplo n.º 2
0
        public void AddCategoryToBudget(Guid categoryId, Guid budgetId)
        {
            var relationship = new BudgetToCategory { CategoryId = categoryId, BudgetId = budgetId };

            db.Insert(relationship);
        }