private void ReassingTransactionsByDate(BudgetCategory fromCategory, BudgetCategory toCategory)
 {
     foreach (Transaction tran in _context.GetTransactions()
              .Where(t => t.OverrideCategoryID == fromCategory.ID && t.Date >= toCategory.EffectiveFrom))
     {
         tran.OverrideCategoryID = toCategory.ID;
         _context.EditTransaction(tran);
     }
 }
 public bool TransactionExists(int id)
 {
     return(_context.GetTransactions().Any(t => t.ID == id));
 }