public void AddTransaction(Transaction transaction) { _context.Transactions.Add(transaction); _context.SaveChanges(); }
public void AddCryptoCurrency(CryptoCurrency coin) { _context.CryptoCurrencies.Add(coin); _context.SaveChanges(); }