Esempio n. 1
0
        public async Task <UserBitcoinAddress> Update(UserBitcoinAddress bitcoinAddress)
        {
            _context.Entry(bitcoinAddress).State = EntityState.Modified;
            await _context.SaveChangesAsync();

            return(bitcoinAddress);
        }
Esempio n. 2
0
        public async Task <UserBitcoinAddress> Add(UserBitcoinAddress bitcoinAddress)
        {
            _context.UserBitcoinAddresses.Add(bitcoinAddress);
            await _context.SaveChangesAsync();

            return(bitcoinAddress);
        }