Exemple #1
0
        // Create
        public Account CreateAccount(Account account)
        {
            _context.Accounts.Add(account);

            _context.SaveChanges();

            return(account);
        }
        // Create
        public Transactions CreateTransaction(Transactions transaction)
        {
            // Create a new transaction.
            _context.Transactions.Add(transaction);
            _context.SaveChanges();

            return(transaction);
        }