public void DeleteTransactionType(int Id) { var repository = new TransactionTypeRepository(_db); repository.Delete(Id); repository.Save(); }