public void RemoveBudgetFromUser(Guid budgetId, Guid userId) { var relationship = new UserToBudget { UserId = userId, BudgetId = budgetId }; db.Delete(relationship); }
public void AddBudgetToUser(Guid budgetId, Guid userId) { var relationship = new UserToBudget { UserId = userId, BudgetId = budgetId }; db.Insert(relationship); }