public void RemoveTransactionFromBudget(Guid transactionId, Guid budgetId) { var relationship = new BudgetToTransaction { TransactionId = transactionId, BudgetId = budgetId }; db.Delete(relationship); }
public void AddTransactionToBudget(Guid transactionId, Guid budgetId) { var relationship = new BudgetToTransaction { TransactionId = transactionId, BudgetId = budgetId }; db.Insert(relationship); }